From a346201e0c48f8fd8ea9ce8e0ff03cc968e35f9d Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Thu, 5 Oct 2023 11:43:40 +0700 Subject: [PATCH] fix route of edit receipt request --- 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(); }, });