Skip to content

Commit

Permalink
use async await
Browse files Browse the repository at this point in the history
  • Loading branch information
zxt-tzx committed Sep 22, 2023
1 parent eb467f0 commit b04aa14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/sign-in/components/SgidCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const SgidCallback = () => {
await utils.me.get.invalidate()
await router.replace(redirectUrl)
},
onError: (error) => {
onError: async (error) => {
console.error(error)
void router.replace(`/sign-in?error=${error.message}`)
await router.replace(`/sign-in?error=${error.message}`)
},
}
)
Expand Down

0 comments on commit b04aa14

Please sign in to comment.