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>}
|
||||
<AccountSettingsForm
|
||||
user={user}
|
||||
onSuccess={() => {
|
||||
reloadUser();
|
||||
onSuccess={async () => {
|
||||
await reloadUser();
|
||||
setState(State.Success);
|
||||
}}
|
||||
onFailure={() => setState(State.Failure)}
|
||||
|
|
Reference in New Issue