Skip to content

Commit ee9023a

Browse files
committed
Address review: split comment sentences, drop stale query claim
1 parent 4fa17e4 commit ee9023a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/Navigation/linkingConfig/OldRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const oldRoutes: Record<string, string> = {
66
'/*/*/time/*/*': '/$1/$2/destination/$3/$4/per-diem-time',
77
// The per diem subrate step is a dynamic suffix stacked on the time step (wizard) or on the confirmation step
88
// (edit). Its `:pageIndex` stays the last segment. The wizard variant keeps the optional legacy `backToReport`
9-
// segment on the start base; query strings are not preserved (callers no longer append `?backTo=`).
9+
// segment on the start base.
1010
'/*/*/subrate/*/*/edit/*': '/$1/$2/confirmation/$3/$4/per-diem-subrate-edit/$5',
1111
'/*/*/subrate/*/*/*/*': '/$1/$2/start/$3/$4/$5/per-diem-time/per-diem-subrate/$6',
1212
'/*/*/subrate/*/*/*': '/$1/$2/start/$3/$4/per-diem-time/per-diem-subrate/$5',

src/pages/iou/request/step/DynamicIOURequestStepSubrate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function DynamicIOURequestStepSubrate({
8181
}: DynamicIOURequestStepSubrateProps) {
8282
const isEditPage = routeName === SCREENS.MONEY_REQUEST.DYNAMIC_STEP_SUBRATE_EDIT;
8383
// Back removes this step's own dynamic suffix from the current URL. In edit mode (`per-diem-subrate-edit/:pageIndex`)
84-
// the suffix sits on the confirmation base, so back returns to the confirmation step; in the wizard flow
84+
// the suffix sits on the confirmation base, so back returns to the confirmation step. In the wizard flow
8585
// (`per-diem-subrate/:pageIndex`) it sits on the time base, so back returns to the time step.
8686
const backPath = useDynamicBackPath(isEditPage ? DYNAMIC_ROUTES.MONEY_REQUEST_STEP_SUBRATE_EDIT.path : DYNAMIC_ROUTES.MONEY_REQUEST_STEP_SUBRATE.path);
8787
const styles = useThemeStyles();

0 commit comments

Comments
 (0)