diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-26 23:06:27 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-26 23:06:27 +0100 |
commit | 4fbdf100c4a942100f6542bbb858d91673af8573 (patch) | |
tree | 60aa15666490ed1d3b79e2b94a6f43c90b3d619f /app/assets/javascripts/components/middleware | |
parent | 4bb8ff7c8ea3ab7c291a23893af2846811b99faf (diff) |
Add <MissingIndicator /> when status or account are not found, skip alerts
for those errors
Diffstat (limited to 'app/assets/javascripts/components/middleware')
-rw-r--r-- | app/assets/javascripts/components/middleware/errors.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/middleware/errors.jsx b/app/assets/javascripts/components/middleware/errors.jsx index 74d77f0f9..4aca75f1e 100644 --- a/app/assets/javascripts/components/middleware/errors.jsx +++ b/app/assets/javascripts/components/middleware/errors.jsx @@ -5,7 +5,7 @@ const defaultFailSuffix = 'FAIL'; export default function errorsMiddleware() { return ({ dispatch }) => next => action => { - if (action.type) { + if (action.type && !action.skipAlert) { const isFail = new RegExp(`${defaultFailSuffix}$`, 'g'); const isSuccess = new RegExp(`${defaultSuccessSuffix}$`, 'g'); |