diff --git a/src/_screens/login/index.js b/src/_screens/login/index.js index ddb214a..6b01fcc 100644 --- a/src/_screens/login/index.js +++ b/src/_screens/login/index.js @@ -79,16 +79,21 @@ export default function Login() { dispatch({ type: TYPE_DISPATCH.RESET_AUTHENTICATION, }); - persistor.purge(); - window.location.href = PATH.login; - return false + dispatch( + alertActions.error({ + message: 'Bạn không có quyền truy cập', + }), + ); + return false + // persistor.purge(); + // window.location.href = PATH.login; } handleLoginSuccess(res); } } catch (err) { dispatch( alertActions.error({ - message: 'Bạn không có quyền truy cập', + message: err.toString() }), ); }