Skip to content

Commit

Permalink
Merge pull request #28527 from allroundexperts/fix-28526
Browse files Browse the repository at this point in the history
[CP Staging] fix: use correct variables for navigateToNextPage fn
  • Loading branch information
mountiny authored Oct 1, 2023
2 parents 8cfba89 + e95821e commit 6261743
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/iou/ReceiptSelector/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ function ReceiptSelector({route, report, iou, transactionID, isInTabNavigator})
const appState = useRef(AppState.currentState);

const iouType = lodashGet(route, 'params.iouType', '');
const reportID = lodashGet(route, 'params.reportID', '');
const pageIndex = lodashGet(route, 'params.pageIndex', 1);

const {translate} = useLocalize();
Expand Down Expand Up @@ -223,13 +222,13 @@ function ReceiptSelector({route, report, iou, transactionID, isInTabNavigator})
return;
}

IOU.navigateToNextPage(iou, iouType, reportID, report, route.path);
IOU.navigateToNextPage(iou, iouType, report, route.path);
})
.catch((error) => {
showCameraAlert();
Log.warn('Error taking photo', error);
});
}, [flash, iouType, iou, report, reportID, translate, transactionID, route.path]);
}, [flash, iouType, iou, report, translate, transactionID, route.path]);

CameraPermission.getCameraPermissionStatus().then((permissionStatus) => {
setPermissions(permissionStatus);
Expand Down

0 comments on commit 6261743

Please sign in to comment.