Skip to content

Commit

Permalink
fix: error toast when sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
Teages committed Feb 4, 2024
1 parent fc9a407 commit f979928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/session/signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ async function signUp(verify: () => Promise<string>) {
})
const { data, error } = response
if (error.value || !data.value?.user) {
if (error.value?.message) {
handleErrorToast(new Error(error.value.message))
if (error.value?.data.message) {
handleErrorToast(new Error(error.value.data.message))
}
else {
handleErrorToast(error.value ?? new Error('Unknown error'))
Expand Down

0 comments on commit f979928

Please sign in to comment.