Skip to content

Commit

Permalink
feat: Add user email to default text
Browse files Browse the repository at this point in the history
rather then notifiction. Also does some housekeeping
  • Loading branch information
ff6347 committed May 10, 2023
1 parent 61a757b commit b24b68c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Sidebar/SidebarAuth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,14 @@ export const SidebarAuth = ({
}
throw error;
}
if (data.user) {
if (!data.user) {
setNotification({
message: `Eine E-Mail an "${email}" wurde verschickt`,
type: 'success',
message: `Eine E-Mail an "${email}" konnte nicht verschickt werden. Versuch es erneut`,
type: 'error',
});
setView('signup');
}
if (data.user) {
setView('confirm');
}
};
Expand Down

0 comments on commit b24b68c

Please sign in to comment.