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(); }, });