chore(dashboard-v2): await reloadUser
This commit is contained in:
parent
5231413074
commit
2aa3437ab6
|
@ -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)}
|
||||||
|
|
Reference in New Issue