From 27a1d3216f8562bedddb999c0d35b074f751d49b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 14:37:37 -0300 Subject: SPA e-mail address empty --- packages/demobank-ui/src/pages/admin/AccountForm.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/demobank-ui/src') 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({ 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({ 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, -- cgit v1.2.3