Skip to content

Commit

Permalink
Display violation when tax rate is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Apr 17, 2024
1 parent 21ee1a3 commit 80efdea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
/>
</OfflineWithFeedback>
)}
Expand Down
1 change: 1 addition & 0 deletions src/libs/Permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {IOUType} from '@src/CONST';
import type Beta from '@src/types/onyx/Beta';

function canUseAllBetas(betas: OnyxEntry<Beta[]>): boolean {
return true;
return !!betas?.includes(CONST.BETAS.ALL);
}

Expand Down

0 comments on commit 80efdea

Please sign in to comment.