diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-19 14:52:34 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-19 14:52:34 -0300 |
commit | 45691dc991945d8c0a3d4bc95078bd1af5932927 (patch) | |
tree | f3e15c1d66e65b20b8c1e2e5ce38f31a0a687014 /packages | |
parent | 72b429321553841ac1ff48cf974bfc65da01bb06 (diff) |
fix: #7526 - patch authored by Windfisch
Diffstat (limited to 'packages')
-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 ( |