auth0-extensions/auth0-delegated-administration-extension

View on GitHub
client/middlewares/normalizeErrorMiddleware.js

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (action && action.type.endsWith('_REJECTED') && action.payload) {
      // Try to get the default error message from the response.
      let message = action.payload.statusText || action.payload.status || 'Unknown Server Error';

      const status = (action.payload.response && action.payload.response.status) || 500;
Severity: Critical
Found in client/middlewares/normalizeErrorMiddleware.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status