Add <MissingIndicator /> when status or account are not found, skip alerts
for those errors
This commit is contained in:
parent
4bb8ff7c8e
commit
4fbdf100c4
8 changed files with 27 additions and 36 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue