diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/account')
-rw-r--r-- | packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx index 8fec0f682..6d5a1c18d 100644 --- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx +++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx @@ -88,10 +88,11 @@ export function ShowAccountDetails({ async function doUpdate() { if (!submitAccount || !creds) return; await handleError(async () => { - const resp = await api.updateAccount({ - token: creds.token, - username: account, - }, + const resp = await api.updateAccount( + { + token: creds.token, + username: account, + }, submitAccount, ); |