✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix: display error at register
AykutSaracb4dbb0a0d5a9
diff --git a/src/pages/sign-in.tsx b/src/pages/sign-in.tsxindex 9f435110..b624ef97 100644--- a/src/pages/sign-in.tsx+++ b/src/pages/sign-in.tsx@@ -79,6 +79,12 @@ export function AuthenticationForm(props: PaperProps) {} else {altogic.auth.signUpWithEmail(form.values.email, form.values.password, form.values.name)+ .then(({ errors, user }) => {+ if (errors?.items.length) {+ return errors.items.forEach(e => toast.error(e.message));+ }+ toast.success("Registration successful!");+ }).finally(() => setLoading(false));}};