Commit 3b905bb
Allow clearing optional merchant field in merchant rules
The isInvalidMerchantValue check in TextBase.validate was rejecting
empty strings for the merchant rename field, even though the field is
optional. This prevented users from clearing a previously-saved merchant
value. Adding a truthiness guard so the validation only runs on
non-empty values.
Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>1 parent 2cf34d2 commit 3b905bb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments