Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ivashchuk committed Apr 15, 2024
1 parent d270a98 commit 4da3aea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const Onboarding = () => {
const utils = api.useUtils();
const getUserQuery = api.user.getUser.useQuery();
const updateUserMutation = api.user.updateUser.useMutation({
onSuccess: (data) => {
utils.user.invalidate();
onSuccess: async () => {
await utils.user.invalidate();
router.push("/app/onboarding/settings");
},
});
Expand Down

0 comments on commit 4da3aea

Please sign in to comment.