File tree 1 file changed +6
-2
lines changed
src/components/ReportActionItem 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -295,8 +295,12 @@ function MoneyRequestView({
295
295
shouldShowRightIcon = { canEditMerchant }
296
296
titleStyle = { styles . flex1 }
297
297
onPress = { ( ) => Navigation . navigate ( ROUTES . EDIT_REQUEST . getRoute ( report . reportID , CONST . EDIT_REQUEST_FIELD . MERCHANT ) ) }
298
- brickRoadIndicator = { hasViolations ( 'merchant' ) || ( hasErrors && isEmptyMerchant && isPolicyExpenseChat ) ? CONST . BRICK_ROAD_INDICATOR_STATUS . ERROR : undefined }
299
- error = { hasErrors && isPolicyExpenseChat && isEmptyMerchant ? translate ( 'common.error.enterMerchant' ) : '' }
298
+ brickRoadIndicator = {
299
+ hasViolations ( 'merchant' ) || ( ! isSettled && ! isCancelled && hasErrors && isEmptyMerchant && isPolicyExpenseChat )
300
+ ? CONST . BRICK_ROAD_INDICATOR_STATUS . ERROR
301
+ : undefined
302
+ }
303
+ error = { ! isSettled && ! isCancelled && hasErrors && isPolicyExpenseChat && isEmptyMerchant ? translate ( 'common.error.enterMerchant' ) : '' }
300
304
/>
301
305
{ canUseViolations && < ViolationMessages violations = { getViolationsForField ( 'merchant' ) } /> }
302
306
</ OfflineWithFeedback >
You can’t perform that action at this time.
0 commit comments