diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx index 7a4fbddf5..ab5ceb8d5 100644 --- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx +++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx @@ -52,7 +52,10 @@ export function ShowAccountDetails({ async function doUpdate() { if (!update || !submitAccount || !creds) return; await handleError(async () => { - const resp = await api.updateAccount(creds, { + const resp = await api.updateAccount({ + token: creds.token, + username: account, + }, { cashout_address: submitAccount.cashout_payto_uri, challenge_contact_data: undefinedIfEmpty({ email: submitAccount.contact_data?.email, |