Skip to content

Commit

Permalink
Fix rendering error messages on signup
Browse files Browse the repository at this point in the history
  • Loading branch information
erunks committed Nov 23, 2023
1 parent 62a88b7 commit 78fa328
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/blocks/cards/SignUpCard/SignUpCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,7 @@ async function signup() {
},
{
onError: (val: any) => {
errorText.value = `Error(s): ${(
Object.values(val.error.errors) as string[]
).reduce(
(accumulator: string, val: string) => `${accumulator} ${val}`,
'',
)}`
errorText.value = `Error(s): ${val.error.title as string}`
showErrorsText.value = true
},
onOkay: () => {
Expand Down

0 comments on commit 78fa328

Please sign in to comment.