Skip to content

Commit 5b64ac0

Browse files
fix: pass backToReport instead of action to useRestartOnOdometerImagesFailure in IOURequestStepOdometerImage/index.tsx
1 parent 1984eca commit 5b64ac0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/pages/iou/request/step/IOURequestStepOdometerImage

src/pages/iou/request/step/IOURequestStepOdometerImage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function IOURequestStepOdometerImage({
5555
const iouTypeValue: IOUType = iouType ?? CONST.IOU.TYPE.REQUEST;
5656
const isTransactionDraft = shouldUseTransactionDraft(actionValue, iouTypeValue);
5757

58-
useRestartOnOdometerImagesFailure(transaction, reportID, iouTypeValue, actionValue);
58+
useRestartOnOdometerImagesFailure(transaction, reportID, iouTypeValue, backToReport);
5959
const dropBlobUrlsRef = useRef<string[]>([]);
6060
const shouldRevokeOnUnmountRef = useRef(true);
6161
// We need to use isSmallScreenWidth instead of shouldUseNarrowLayout because drag and drop is not supported on mobile.

0 commit comments

Comments
 (0)