@@ -172,8 +172,8 @@ function SearchPage({route}: SearchPageProps) {
172172 onSelected : ( ) => {
173173 // The report level export template is not policy specific, so we don't need to pass a policyID
174174 beginExportWithTemplate ( CONST . REPORT . EXPORT_OPTIONS . EXPENSE_LEVEL_EXPORT , CONST . EXPORT_TEMPLATE_TYPES . INTEGRATIONS , undefined ) ;
175- clearSelectedTransactions ( undefined , true ) ;
176175 } ,
176+ shouldCloseModalOnSelect : true ,
177177 } ,
178178 ] ;
179179
@@ -191,8 +191,8 @@ function SearchPage({route}: SearchPageProps) {
191191 onSelected : ( ) => {
192192 // The report level export template is not policy specific, so we don't need to pass a policyID
193193 beginExportWithTemplate ( CONST . REPORT . EXPORT_OPTIONS . REPORT_LEVEL_EXPORT , CONST . EXPORT_TEMPLATE_TYPES . INTEGRATIONS , undefined ) ;
194- clearSelectedTransactions ( undefined , true ) ;
195194 } ,
195+ shouldCloseModalOnSelect : true ,
196196 } ) ;
197197 }
198198
@@ -627,6 +627,17 @@ function SearchPage({route}: SearchPageProps) {
627627 isVisible = { isDownloadErrorModalVisible }
628628 onClose = { ( ) => setIsDownloadErrorModalVisible ( false ) }
629629 />
630+ < ConfirmModal
631+ isVisible = { isExportWithTemplateModalVisible }
632+ onConfirm = { ( ) => {
633+ setIsExportWithTemplateModalVisible ( false ) ;
634+ clearSelectedTransactions ( undefined , true ) ;
635+ } }
636+ title = { translate ( 'export.exportInProgress' ) }
637+ prompt = { translate ( 'export.conciergeWillSend' ) }
638+ confirmText = { translate ( 'common.buttonConfirm' ) }
639+ shouldShowCancelButton = { false }
640+ />
630641 </ View >
631642 ) }
632643 </ >
@@ -712,7 +723,10 @@ function SearchPage({route}: SearchPageProps) {
712723 />
713724 < ConfirmModal
714725 isVisible = { isExportWithTemplateModalVisible }
715- onConfirm = { ( ) => setIsExportWithTemplateModalVisible ( false ) }
726+ onConfirm = { ( ) => {
727+ setIsExportWithTemplateModalVisible ( false )
728+ clearSelectedTransactions ( undefined , true ) ;
729+ } }
716730 title = { translate ( 'export.exportInProgress' ) }
717731 prompt = { translate ( 'export.conciergeWillSend' ) }
718732 confirmText = { translate ( 'common.buttonConfirm' ) }
0 commit comments