Skip to content

Commit

Permalink
Merge pull request Expensify#36550 from infinitered/trevor-coleman/vi…
Browse files Browse the repository at this point in the history
…olations/merchant-fix

fix(Violations): fix behaviour of merchant errors
  • Loading branch information
AndrewGable authored Feb 15, 2024
2 parents d88bdf3 + afce0a7 commit 68b9350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ function MoneyRequestView({
ROUTES.MONEY_REQUEST_STEP_MERCHANT.getRoute(CONST.IOU.ACTION.EDIT, CONST.IOU.TYPE.REQUEST, transaction?.transactionID ?? '', report.reportID),
)
}
brickRoadIndicator={hasViolations('merchant') || (hasErrors && isEmptyMerchant && isPolicyExpenseChat) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
error={hasErrors && isPolicyExpenseChat && isEmptyMerchant ? translate('common.error.enterMerchant') : ''}
brickRoadIndicator={getErrorForField('merchant') ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
error={getErrorForField('merchant')}
/>
</OfflineWithFeedback>
)}
Expand Down

0 comments on commit 68b9350

Please sign in to comment.