summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-07-13 23:38:39 +0530
committerSunil Shetye2025-07-13 23:38:52 +0530
commita0ea3004b654a0081fb80b9c7deb0451fc69a879 (patch)
treeaea4da0063a7e6659f793d436b8df2cdb4d017bc
parent264f5ffc76dc45160237fedbad8e3d39a92fc39d (diff)
downloadCommon-Interface-Project-a0ea3004b654a0081fb80b9c7deb0451fc69a879.tar.gz
Common-Interface-Project-a0ea3004b654a0081fb80b9c7deb0451fc69a879.tar.bz2
Common-Interface-Project-a0ea3004b654a0081fb80b9c7deb0451fc69a879.zip
remove setting isLoading to false prematurely
let loadUser() do it later
-rw-r--r--blocks/eda-frontend/src/redux/authSlice.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/blocks/eda-frontend/src/redux/authSlice.js b/blocks/eda-frontend/src/redux/authSlice.js
index 5d59363e..21087d52 100644
--- a/blocks/eda-frontend/src/redux/authSlice.js
+++ b/blocks/eda-frontend/src/redux/authSlice.js
@@ -230,7 +230,6 @@ const authSlice = createSlice({
state.isAuthenticated = false
})
.addCase(login.fulfilled, (state, action) => {
- state.isLoading = false
state.token = action.payload
state.errors = ''
})
@@ -245,9 +244,6 @@ const authSlice = createSlice({
state.isLoading = true
state.isAuthenticated = false
})
- .addCase(googleLogin.fulfilled, (state) => {
- state.isLoading = false
- })
.addCase(googleLogin.rejected, (state, action) => {
state.isLoading = false
state.token = null
@@ -259,9 +255,6 @@ const authSlice = createSlice({
state.isLoading = true
state.isAuthenticated = false
})
- .addCase(githubLogin.fulfilled, (state) => {
- state.isLoading = false
- })
.addCase(githubLogin.rejected, (state, action) => {
state.isLoading = false
state.token = null