Skip to content

Commit

Permalink
fix: fixed incomplete migration in user.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidace136 committed May 8, 2024
1 parent b171658 commit dfab3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/common/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const reducer = (state = initialState, action: UserAction): UserState =>
...originalReviews.slice(foundIndex + 1, originalReviews.length),
]
: [...originalReviews.slice(), review];
return { ...state, user: { reviews: newReviews } };
return { ...state, user: { ...state.user, reviews: newReviews } };

Check warning on line 31 in src/reducers/common/user.ts

View check run for this annotation

Codecov / codecov/patch

src/reducers/common/user.ts#L31

Added line #L31 was not covered by tests
}
default:
return state;
Expand Down

0 comments on commit dfab3ba

Please sign in to comment.