Skip to content

Commit 6725889

Browse files
MelvinBotPujan92
andcommitted
Pass shouldRestrictAction=true for track and distance quick actions
TRACK_MANUAL, TRACK_SCAN, TRACK_PER_DIEM, REQUEST_DISTANCE, and TRACK_DISTANCE were passing shouldRestrictAction=false in navigateToQuickAction(), which skipped the paywall check for expired workspaces. This makes them consistent with REQUEST_MANUAL, REQUEST_SCAN, and other actions that already pass true. Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
1 parent b9f7799 commit 6725889

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/libs/actions/QuickActionNavigation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ function navigateToQuickAction(params: NavigateToQuickActionParams) {
6565
case CONST.QUICK_ACTIONS.TRACK_MANUAL:
6666
case CONST.QUICK_ACTIONS.TRACK_SCAN:
6767
case CONST.QUICK_ACTIONS.TRACK_PER_DIEM:
68-
selectOption(() => startMoneyRequest(CONST.IOU.TYPE.TRACK, reportID, draftTransactionIDs, requestType, true, undefined, isFromFloatingActionButton), false);
68+
selectOption(() => startMoneyRequest(CONST.IOU.TYPE.TRACK, reportID, draftTransactionIDs, requestType, true, undefined, isFromFloatingActionButton), true);
6969
break;
7070
case CONST.QUICK_ACTIONS.REQUEST_DISTANCE:
71-
selectOption(() => startDistanceRequest(CONST.IOU.TYPE.SUBMIT, reportID, draftTransactionIDs, requestType, true, undefined, isFromFloatingActionButton), false);
71+
selectOption(() => startDistanceRequest(CONST.IOU.TYPE.SUBMIT, reportID, draftTransactionIDs, requestType, true, undefined, isFromFloatingActionButton), true);
7272
break;
7373
case CONST.QUICK_ACTIONS.TRACK_DISTANCE:
74-
selectOption(() => startDistanceRequest(CONST.IOU.TYPE.TRACK, reportID, draftTransactionIDs, requestType, true, undefined, isFromFloatingActionButton), false);
74+
selectOption(() => startDistanceRequest(CONST.IOU.TYPE.TRACK, reportID, draftTransactionIDs, requestType, true, undefined, isFromFloatingActionButton), true);
7575
break;
7676
case CONST.QUICK_ACTIONS.REQUEST_TIME:
7777
selectOption(() => startMoneyRequest(CONST.IOU.TYPE.SUBMIT, reportID, draftTransactionIDs, requestType, false, undefined, isFromFloatingActionButton), true);

0 commit comments

Comments
 (0)