Skip to content

Commit ad4f6c9

Browse files
authored
Merge pull request Expensify#84209 from Expensify/claude-fixEmptyMerchantRuleValidation
Allow clearing optional merchant field in merchant rules
2 parents 047789b + 3b905bb commit ad4f6c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Rule/TextBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function TextBase<TFormID extends OnyxFormKey>({
6363
if (!isValid) {
6464
(errors as Record<string, string>)[fieldID] = translate('common.error.characterLimitExceedCounter', byteLength, characterLimit);
6565
} else if (fieldID === CONST.EXPENSE_RULES.FIELDS.RENAME_MERCHANT || fieldID === CONST.MERCHANT_RULES.FIELDS.MERCHANT) {
66-
if (isInvalidMerchantValue(trimmedValue)) {
66+
if (trimmedValue && isInvalidMerchantValue(trimmedValue)) {
6767
(errors as Record<string, string>)[fieldID] = translate('iou.error.invalidMerchant');
6868
}
6969
}

0 commit comments

Comments
 (0)