@@ -65,7 +65,7 @@ const InstallerForm = memo((): JSX.Element => {
try {
await apiv3Post('/installer', data);
- router.push('/');
+ router.push('/').then(() => setIsLoading(false));
}
catch (errs) {
const err = errs[0];
@@ -44,7 +44,7 @@ export const InvitedForm = (props: InvitedFormProps): JSX.Element => {
const res = await apiv3Post('/invited', { invitedForm });
const { redirectTo } = res.data;
- router.push(redirectTo ?? '/');
+ router.push(redirectTo ?? '/').then(() => setIsLoading(false));
catch (err) {
setLoginErrors(err);