verifyCredentials: do alert on failure
This commit is contained in:
parent
3fbc912dae
commit
da9eaf2b82
|
@ -180,7 +180,7 @@ export const verifyCredentials = (token: string, accountUrl?: string) => {
|
||||||
return account;
|
return account;
|
||||||
} else {
|
} else {
|
||||||
if (getState().me === null) dispatch(fetchMeFail(error));
|
if (getState().me === null) dispatch(fetchMeFail(error));
|
||||||
dispatch({ type: VERIFY_CREDENTIALS_FAIL, token, error, skipAlert: true });
|
dispatch({ type: VERIFY_CREDENTIALS_FAIL, token, error });
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue