Skip to content

Commit

Permalink
Bugfix: Ignoring checking Max Amount when it is undefined
Browse files Browse the repository at this point in the history
Bugfix: Ignoring checking Max Amount when it is undefined
  • Loading branch information
NghiaDTr authored Nov 19, 2024
2 parents 250471a + eb58a0a commit 7ad12b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const validate = (

for (const currencies of Object.values(formikValues)) {
for (const { minAmount, maxAmount } of Object.values(currencies)) {
if (maxAmount === '') {
if (maxAmount === '' || maxAmount === undefined) {
continue;
}

Expand Down

0 comments on commit 7ad12b8

Please sign in to comment.