Skip to content

Commit

Permalink
Merge pull request #43446 from Expensify/chirag-violation-fix
Browse files Browse the repository at this point in the history
[CP-stag] Removing check for shouldShowHoldMessage

(cherry picked from commit 9e4e501)
  • Loading branch information
luacmartins authored and OSBotify committed Jun 11, 2024
1 parent f9e3961 commit d174431
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ function MoneyRequestPreviewContent({
const isTooLong = violationsCount > 1 || violationMessage.length > 15;
const hasViolationsAndFieldErrors = violationsCount > 0 && hasFieldErrors;

message += ` ${CONST.DOT_SEPARATOR} ${isTooLong || hasViolationsAndFieldErrors ? translate('violations.reviewRequired') : violationMessage}`;
if (shouldShowHoldMessage) {
message += ` ${CONST.DOT_SEPARATOR} ${translate('iou.hold')}`;
}
return message;
return `${message} ${CONST.DOT_SEPARATOR} ${isTooLong || hasViolationsAndFieldErrors ? translate('violations.reviewRequired') : violationMessage}`;
}

const isMerchantMissing = TransactionUtils.isMerchantMissing(transaction);
Expand Down

0 comments on commit d174431

Please sign in to comment.