Removed redundant code and files

This commit is contained in:
Daniel Cojocea committed 2024-07-16 17:24:48 -04:00
1 parent 7fa1fecb9e
commit 7ece57fa40
3 files changed
+2 -81

No files matched your search

+1 -6
View File
@@ -182,11 +182,6 @@ const handleForgotRejected = (state, action) => {
? action.payload.msg
: "Failed to send reset instructions.";
};
const handleNewPasswordFulfilled = (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
};
const handleNewPasswordRejected = (state, action) => {
state.isLoading = false;
state.success = false;
@@ -253,7 +248,7 @@ const authSlice = createSlice({
.addCase(setNewPassword.pending, (state) => {
state.isLoading = true;
})
.addCase(setNewPassword.fulfilled, handleNewPasswordFulfilled)
.addCase(setNewPassword.fulfilled, handleAuthFulfilled)
.addCase(setNewPassword.rejected, handleNewPasswordRejected);
},
});