File tree Expand file tree Collapse file tree
src/pages/iou/request/step/IOURequestStepScan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -795,10 +795,9 @@ function IOURequestStepScan({
795795 if ( ! dismissedProductTraining ?. [ CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . MULTI_SCAN_EDUCATIONAL_MODAL ] ) {
796796 setShouldShowMultiScanEducationalPopup ( true ) ;
797797 }
798- if ( isMultiScanEnabled ) {
799- removeDraftTransactions ( true ) ;
800- }
798+
801799 removeTransactionReceipt ( CONST . IOU . OPTIMISTIC_TRANSACTION_ID ) ;
800+ removeDraftTransactions ( true ) ;
802801 setIsMultiScanEnabled ?.( ! isMultiScanEnabled ) ;
803802 } ;
804803
Original file line number Diff line number Diff line change @@ -796,10 +796,8 @@ function IOURequestStepScan({
796796 if ( ! dismissedProductTraining ?. [ CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . MULTI_SCAN_EDUCATIONAL_MODAL ] ) {
797797 setShouldShowMultiScanEducationalPopup ( true ) ;
798798 }
799- if ( isMultiScanEnabled ) {
800- removeDraftTransactions ( true ) ;
801- }
802799 removeTransactionReceipt ( CONST . IOU . OPTIMISTIC_TRANSACTION_ID ) ;
800+ removeDraftTransactions ( true ) ;
803801 setIsMultiScanEnabled ?.( ! isMultiScanEnabled ) ;
804802 } ;
805803
You can’t perform that action at this time.
0 commit comments