chore(web): ensure goto is awaited for login page (#12087)

* chore(web): ensure goto is await for login page

* ensure server config is updated after onboarding is finished
This commit is contained in:
Alex
2024-08-27 17:29:50 -05:00
committed by GitHub
parent 028be6738e
commit be476d7982
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -17,9 +17,9 @@
</p>
<LoginForm
onSuccess={() => goto(AppRoute.PHOTOS, { invalidateAll: true })}
onFirstLogin={() => goto(AppRoute.AUTH_CHANGE_PASSWORD)}
onOnboarding={() => goto(AppRoute.AUTH_ONBOARDING)}
onSuccess={async () => await goto(AppRoute.PHOTOS, { invalidateAll: true })}
onFirstLogin={async () => await goto(AppRoute.AUTH_CHANGE_PASSWORD)}
onOnboarding={async () => await goto(AppRoute.AUTH_ONBOARDING)}
/>
</FullscreenContainer>
{/if}