From cf750a5b9f8659bdd9d61fd36ef4c380cce1543a Mon Sep 17 00:00:00 2001 From: Rami Berman Date: Thu, 6 Jan 2022 17:10:37 +0200 Subject: [PATCH] remove useless success toasts on login/signup --- ui/src/components/InstallPage.tsx | 1 - ui/src/components/LoginPage.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/ui/src/components/InstallPage.tsx b/ui/src/components/InstallPage.tsx index 65840b96e..a30aa14c2 100644 --- a/ui/src/components/InstallPage.tsx +++ b/ui/src/components/InstallPage.tsx @@ -33,7 +33,6 @@ export const InstallPage: React.FC = ({onFirstLogin}) => { setIsLoading(true); await api.register(adminUsername, password); if (!await api.isAuthenticationNeeded()) { - toast.success("admin user created successfully"); setPage(Page.Traffic); onFirstLogin(); } diff --git a/ui/src/components/LoginPage.tsx b/ui/src/components/LoginPage.tsx index ae741d23c..d6bfdb6b3 100644 --- a/ui/src/components/LoginPage.tsx +++ b/ui/src/components/LoginPage.tsx @@ -22,7 +22,6 @@ const LoginPage: React.FC = () => { try { await api.login(username, password); if (!await api.isAuthenticationNeeded()) { - toast.success("Logged in successfully"); setPage(Page.Traffic); } else { toast.error("Invalid credentials");