Add <MissingIndicator /> when status or account are not found, skip alerts
for those errors
This commit is contained in:
1 parent
4bb8ff7c8e
commit
4fbdf100c4
8 files changed
+27
-36
No files matched your search
@@ -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');
|
||||
|
||||
|
||||
Reference in new issue
Block a user