From 80efdea3e2f6766123ef518ac1372c45c2dc6342 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Wed, 17 Apr 2024 12:38:20 +0700 Subject: [PATCH] Display violation when tax rate is invalid --- src/components/ReportActionItem/MoneyRequestView.tsx | 2 ++ src/libs/Permissions.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/ReportActionItem/MoneyRequestView.tsx b/src/components/ReportActionItem/MoneyRequestView.tsx index 73fc7e9bae6e..6d4a0bd7c308 100644 --- a/src/components/ReportActionItem/MoneyRequestView.tsx +++ b/src/components/ReportActionItem/MoneyRequestView.tsx @@ -451,6 +451,8 @@ function MoneyRequestView({ ROUTES.MONEY_REQUEST_STEP_TAX_RATE.getRoute(CONST.IOU.ACTION.EDIT, CONST.IOU.TYPE.REQUEST, transaction?.transactionID ?? '', report.reportID), ) } + brickRoadIndicator={getErrorForField('tax') ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined} + error={getErrorForField('tax')} /> )} diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 105736faeba0..80916a1c7bb2 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -4,6 +4,7 @@ import type {IOUType} from '@src/CONST'; import type Beta from '@src/types/onyx/Beta'; function canUseAllBetas(betas: OnyxEntry): boolean { + return true; return !!betas?.includes(CONST.BETAS.ALL); }