Skip to content

Commit

Permalink
chore: replace route instead push
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 30, 2024
1 parent 25bd1a4 commit 9f3f81f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const useCreateProfile = () => {
})
confetti.current?.()
// @ts-ignore: TODO: either acquire types from backend, or type them here
router.push(`/profile/${response.username}`)
router.replace(`/profile/${response.username}`)
},
onError: (response) => {
toast({
Expand Down

0 comments on commit 9f3f81f

Please sign in to comment.