Skip to content

Commit

Permalink
Merge pull request #168 from amosproj/162-too-many-error-messages-whi…
Browse files Browse the repository at this point in the history
…le-registering

fixed the too many error bug
  • Loading branch information
eddyhakimi authored Jan 20, 2023
2 parents 4a53f01 + 4520871 commit 1a2cb5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/deskstar-frontend/components/RegisterPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ export default function RegisterPanel() {
switch (response) {
case AuthResponse.ErrorCompanyNotFound:
toast.error("Company not Found");
break;
case AuthResponse.ErrorEmailaddressAlreadyExists:
toast.error("Email adress already registered");
break;
default:
toast.error("Unknown error");
break;
}
return;
}
Expand Down

0 comments on commit 1a2cb5f

Please sign in to comment.