From 44f1fdfc8884e916bd027f7aa278053ef6d170ae Mon Sep 17 00:00:00 2001 From: Arno V Date: Tue, 9 Jul 2024 19:24:51 -0400 Subject: [PATCH] fix: logout reason should reset when login is successful (#96) --- packages/auth-provider/src/components/AuthProvider/reducer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/auth-provider/src/components/AuthProvider/reducer.ts b/packages/auth-provider/src/components/AuthProvider/reducer.ts index 4ce08ca..96167da 100644 --- a/packages/auth-provider/src/components/AuthProvider/reducer.ts +++ b/packages/auth-provider/src/components/AuthProvider/reducer.ts @@ -19,6 +19,7 @@ export const reducer = (state: AuthState, action: InternalActions) => { isLoading: false, isAuthenticated: true, user: action.payload.user, + logoutReason: "", }; }