Skip to content

Commit

Permalink
Merge pull request #71 from Yura-Platonov/ChangePass
Browse files Browse the repository at this point in the history
Update userSlice.js
  • Loading branch information
LaPaNu4 authored Jan 4, 2024
2 parents b02a9c9 + 2fcf93d commit eb32647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redux/user/userSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const userSlice = createSlice({
state.error = payload;
})
.addCase(acceptCode.fulfilled, (state, { payload }) => {
state.user = payload;
state.user = {...payload.data};
state.isLoading = false;
state.error = null;
})
Expand Down

0 comments on commit eb32647

Please sign in to comment.