Skip to content

Commit

Permalink
fix(phone visib): toggle after success
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammedKpln committed Feb 1, 2024
1 parent df951e3 commit 137d55d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/settings/Privacy/PhoneVisibility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export default function PhoneVisibility() {
showPhoneNumber: checked,
});
},
onMutate(variables) {
onSuccess(data, variables, context) {
const qKey = [QueryKeys.Profile, user?.uid];

queryClient.setQueryData<IUser>(qKey, (v) => {
return {
...v,
Expand Down

0 comments on commit 137d55d

Please sign in to comment.