@@ -74,7 +74,7 @@ function isAddExpenseAction(report: Report, reportTransactions: Transaction[], i
7474 return canAddTransaction ( report , isReportArchived ) ;
7575}
7676
77- function isSplitAction ( report : Report , reportTransactions : Transaction [ ] , policy ?: Policy , isNewDotUpdateSplitsBeta = true ) : boolean {
77+ function isSplitAction ( report : Report , reportTransactions : Transaction [ ] , policy ?: Policy ) : boolean {
7878 if ( Number ( reportTransactions ?. length ) !== 1 ) {
7979 return false ;
8080 }
@@ -91,15 +91,11 @@ function isSplitAction(report: Report, reportTransactions: Transaction[], policy
9191 return false ;
9292 }
9393
94- const { isBillSplit, isExpenseSplit } = getOriginalTransactionWithSplitInfo ( reportTransaction ) ;
94+ const { isBillSplit} = getOriginalTransactionWithSplitInfo ( reportTransaction ) ;
9595 if ( isBillSplit ) {
9696 return false ;
9797 }
9898
99- if ( isExpenseSplit && ! isNewDotUpdateSplitsBeta ) {
100- return false ;
101- }
102-
10399 if ( ! isExpenseReportUtils ( report ) ) {
104100 return false ;
105101 }
@@ -578,7 +574,6 @@ function getSecondaryReportActions({
578574 reportActions,
579575 policies,
580576 isChatReportArchived = false ,
581- isNewDotUpdateSplitsBeta,
582577} : {
583578 currentUserEmail : string ;
584579 report : Report ;
@@ -591,7 +586,6 @@ function getSecondaryReportActions({
591586 policies ?: OnyxCollection < Policy > ;
592587 canUseNewDotSplits ?: boolean ;
593588 isChatReportArchived ?: boolean ;
594- isNewDotUpdateSplitsBeta ?: boolean ;
595589} ) : Array < ValueOf < typeof CONST . REPORT . SECONDARY_ACTIONS > > {
596590 const options : Array < ValueOf < typeof CONST . REPORT . SECONDARY_ACTIONS > > = [ ] ;
597591
@@ -651,7 +645,7 @@ function getSecondaryReportActions({
651645 options . push ( CONST . REPORT . SECONDARY_ACTIONS . REJECT ) ;
652646 }
653647
654- if ( isSplitAction ( report , reportTransactions , policy , isNewDotUpdateSplitsBeta ) ) {
648+ if ( isSplitAction ( report , reportTransactions , policy ) ) {
655649 options . push ( CONST . REPORT . SECONDARY_ACTIONS . SPLIT ) ;
656650 }
657651
@@ -707,7 +701,6 @@ function getSecondaryTransactionThreadActions(
707701 reportAction : ReportAction | undefined ,
708702 policy : OnyxEntry < Policy > ,
709703 transactionThreadReport ?: OnyxEntry < Report > ,
710- isNewDotUpdateSplitsBeta ?: boolean ,
711704) : Array < ValueOf < typeof CONST . REPORT . TRANSACTION_SECONDARY_ACTIONS > > {
712705 const options : Array < ValueOf < typeof CONST . REPORT . TRANSACTION_SECONDARY_ACTIONS > > = [ ] ;
713706
@@ -723,7 +716,7 @@ function getSecondaryTransactionThreadActions(
723716 options . push ( CONST . REPORT . TRANSACTION_SECONDARY_ACTIONS . REJECT ) ;
724717 }
725718
726- if ( isSplitAction ( parentReport , [ reportTransaction ] , policy , isNewDotUpdateSplitsBeta ) ) {
719+ if ( isSplitAction ( parentReport , [ reportTransaction ] , policy ) ) {
727720 options . push ( CONST . REPORT . TRANSACTION_SECONDARY_ACTIONS . SPLIT ) ;
728721 }
729722
0 commit comments