diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/demobank-ui/src/pages/admin/AccountForm.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/pages/admin/AccountForm.tsx b/packages/demobank-ui/src/pages/admin/AccountForm.tsx index c63d602b7..5a5ce8c32 100644 --- a/packages/demobank-ui/src/pages/admin/AccountForm.tsx +++ b/packages/demobank-ui/src/pages/admin/AccountForm.tsx @@ -246,8 +246,8 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ password: getRandomPassword(), username: newForm.username!, contact_data: undefinedIfEmpty({ - email: newForm.email, - phone: newForm.phone, + email: !newForm.email ? undefined : newForm.email, + phone: !newForm.phone ? undefined :newForm.phone, }), debit_threshold: threshold ?? config.default_debit_threshold, cashout_payto_uri: cashoutURI, @@ -269,8 +269,8 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ const result: TalerCorebankApi.AccountReconfiguration = { cashout_payto_uri: cashoutURI, contact_data: undefinedIfEmpty({ - email: newForm.email, - phone: newForm.phone, + email: !newForm.email ? undefined : newForm.email, + phone: !newForm.phone ? undefined :newForm.phone, }), debit_threshold: threshold, is_public: newForm.isPublic, |