From 750315c4de2dc5cd0675eff327834de19e0cb813 Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Thu, 5 Oct 2023 13:39:26 +0100 Subject: [PATCH] Merge pull request #28890 from dukenv0307/fix/27965-regression [CP Staging] Fix route of edit receipt request (cherry picked from commit 8b2ce60c12911dea556dbe54a84eb3ebfb4bab59) --- src/components/AttachmentModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AttachmentModal.js b/src/components/AttachmentModal.js index fc0101f4adcc..db7a2a5b7593 100755 --- a/src/components/AttachmentModal.js +++ b/src/components/AttachmentModal.js @@ -348,7 +348,7 @@ function AttachmentModal(props) { icon: Expensicons.Camera, text: props.translate('common.replace'), onSelected: () => { - onModalHideCallbackRef.current = () => Navigation.navigate(ROUTES.getEditRequestRoute(props.report.reportID, CONST.EDIT_REQUEST_FIELD.RECEIPT)); + onModalHideCallbackRef.current = () => Navigation.navigate(ROUTES.EDIT_REQUEST.getRoute(props.report.reportID, CONST.EDIT_REQUEST_FIELD.RECEIPT)); closeModal(); }, });