fix: #7526 - patch authored by Windfisch

This commit is contained in:
Sebastian 2022-12-19 14:52:34 -03:00
parent 72b4293215
commit 45691dc991
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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 (