chore(dashboard-v2): await reloadUser

This commit is contained in:
Michał Leszczyk 2022-03-25 12:57:57 +01:00
parent 5231413074
commit 2aa3437ab6
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ const AccountPage = () => {
{state === State.Success && <Alert $variant="success">Changes saved successfully.</Alert>} {state === State.Success && <Alert $variant="success">Changes saved successfully.</Alert>}
<AccountSettingsForm <AccountSettingsForm
user={user} user={user}
onSuccess={() => { onSuccess={async () => {
reloadUser(); await reloadUser();
setState(State.Success); setState(State.Success);
}} }}
onFailure={() => setState(State.Failure)} onFailure={() => setState(State.Failure)}