bug: signup state is now not toggled when component is not toggled

This commit is contained in:
Palash gupta 2022-02-10 16:44:38 +05:30
parent 9bf37b391e
commit 0ae5b824d9
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6

View File

@ -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',