Skip to content

Commit 8b5fedc

Browse files
committed
Revert "minor update"
This reverts commit 7d9dacc.
1 parent 7d9dacc commit 8b5fedc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/libs/TransactionPreviewUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ function getTransactionPreviewTextAndTranslationPaths({
189189
RBRMessage = {translationPath: 'iou.expenseWasPutOnHold'};
190190
}
191191

192-
if (hasReceiptError(transaction) && RBRMessage === undefined) {
193-
RBRMessage = {translationPath: 'iou.error.receiptFailureMessageShort'};
194-
}
195-
196192
const path = getViolationTranslatePath(violations, hasFieldErrors, violationMessage ?? '', isTransactionOnHold);
197193
if (path.translationPath === 'violations.reviewRequired' || (RBRMessage === undefined && violationMessage)) {
198194
RBRMessage = path;
199195
}
200196

197+
if (hasReceiptError(transaction) && RBRMessage === undefined) {
198+
RBRMessage = {translationPath: 'iou.error.receiptFailureMessageShort'};
199+
}
200+
201201
if (hasFieldErrors && RBRMessage === undefined) {
202202
const merchantMissing = isMerchantMissing(transaction);
203203
const amountMissing = isAmountMissing(transaction);

0 commit comments

Comments
 (0)