Skip to content

Commit

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

fix(Violations): fix behaviour of merchant errors

(cherry picked from commit 68b9350)
  • Loading branch information
AndrewGable authored and OSBotify committed Feb 15, 2024
1 parent 932e99d commit 682e4f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,19 @@ function MoneyRequestView({
interactive={canEditMerchant}
shouldShowRightIcon={canEditMerchant}
titleStyle={styles.flex1}
<<<<<<< HEAD
onPress={() => Navigation.navigate(ROUTES.EDIT_REQUEST.getRoute(report.reportID, CONST.EDIT_REQUEST_FIELD.MERCHANT))}
brickRoadIndicator={hasViolations('merchant') || (hasErrors && isEmptyMerchant && isPolicyExpenseChat) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
error={hasErrors && isPolicyExpenseChat && isEmptyMerchant ? translate('common.error.enterMerchant') : ''}
=======
onPress={() =>
Navigation.navigate(
ROUTES.MONEY_REQUEST_STEP_MERCHANT.getRoute(CONST.IOU.ACTION.EDIT, CONST.IOU.TYPE.REQUEST, transaction?.transactionID ?? '', report.reportID),
)
}
brickRoadIndicator={getErrorForField('merchant') ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
error={getErrorForField('merchant')}
>>>>>>> 68b9350 (Merge pull request #36550 from infinitered/trevor-coleman/violations/merchant-fix)
/>
</OfflineWithFeedback>
)}
Expand Down

0 comments on commit 682e4f5

Please sign in to comment.