From 0ae5b824d91d0bc3fdcba457a5df2c852a51142b Mon Sep 17 00:00:00 2001 From: Palash gupta Date: Thu, 10 Feb 2022 16:44:38 +0530 Subject: [PATCH] bug: signup state is now not toggled when component is not toggled --- frontend/src/pages/SignUp/SignUp.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/SignUp/SignUp.tsx b/frontend/src/pages/SignUp/SignUp.tsx index 37253a0aeb..c7f540836a 100644 --- a/frontend/src/pages/SignUp/SignUp.tsx +++ b/frontend/src/pages/SignUp/SignUp.tsx @@ -82,17 +82,19 @@ const Signup = ({ version, userpref }: SignupProps): JSX.Element => { history.push(ROUTES.APPLICATION); } else { + setLoading(false); + notification.error({ message: 'Something went wrong', }); } } else { + setLoading(false); + notification.error({ message: 'Something went wrong', }); } - - setLoading(false); } catch (error) { notification.error({ message: 'Something went wrong',