From 2754f7a5614e9fa30b4707d4a8bbef8a29e657c9 Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 4 Oct 2023 14:57:18 +0800 Subject: [PATCH] Correctly display merchant error --- src/components/ReportActionItem/MoneyRequestView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ReportActionItem/MoneyRequestView.js b/src/components/ReportActionItem/MoneyRequestView.js index 761117105f75..079bc64d96bf 100644 --- a/src/components/ReportActionItem/MoneyRequestView.js +++ b/src/components/ReportActionItem/MoneyRequestView.js @@ -211,8 +211,7 @@ function MoneyRequestView({report, betas, parentReport, policyCategories, should titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.EDIT_REQUEST.getRoute(report.reportID, CONST.EDIT_REQUEST_FIELD.MERCHANT))} brickRoadIndicator={hasErrors && isEmptyMerchant ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''} - subtitle={hasErrors && isEmptyMerchant ? translate('common.error.enterMerchant') : ''} - subtitleTextStyle={styles.textLabelError} + error={hasErrors && isEmptyMerchant ? translate('common.error.enterMerchant') : ''} /> )}