diff options
Diffstat (limited to 'packages/demobank-ui')
-rw-r--r-- | packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx index 1237f5eb1..aa76f61ee 100644 --- a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx +++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx @@ -55,7 +55,7 @@ export function PaytoWireTransferForm({ let parsedAmount = undefined; - const errorsWire = { + const errorsWire = undefinedIfEmpty({ iban: !submitData?.iban ? i18n.str`Missing IBAN` : !/^[A-Z0-9]*$/.test(submitData.iban) @@ -69,7 +69,7 @@ export function PaytoWireTransferForm({ : Amounts.isZero(parsedAmount) ? i18n.str`Should be greater than 0` : undefined, - }; + }); if (!pageState.isRawPayto) return ( |