@@ -3389,8 +3389,6 @@ function categorizeTrackedExpense(
3389
3389
billable ?: boolean ,
3390
3390
receipt ?: Receipt ,
3391
3391
createdWorkspaceParams ?: CreateWorkspaceParams ,
3392
- waypoints ?: string ,
3393
- customUnitRateID ?: string ,
3394
3392
) {
3395
3393
const { optimisticData, successData, failureData} = onyxData ?? { } ;
3396
3394
@@ -3437,8 +3435,6 @@ function categorizeTrackedExpense(
3437
3435
policyExpenseCreatedReportActionID : createdWorkspaceParams ?. expenseCreatedReportActionID ,
3438
3436
adminsChatReportID : createdWorkspaceParams ?. adminsChatReportID ,
3439
3437
adminsCreatedReportActionID : createdWorkspaceParams ?. adminsCreatedReportActionID ,
3440
- waypoints,
3441
- customUnitRateID,
3442
3438
} ;
3443
3439
3444
3440
API . write ( WRITE_COMMANDS . CATEGORIZE_TRACKED_EXPENSE , parameters , { optimisticData, successData, failureData} ) ;
@@ -3474,8 +3470,6 @@ function shareTrackedExpense(
3474
3470
billable ?: boolean ,
3475
3471
receipt ?: Receipt ,
3476
3472
createdWorkspaceParams ?: CreateWorkspaceParams ,
3477
- waypoints ?: string ,
3478
- customUnitRateID ?: string ,
3479
3473
) {
3480
3474
const { optimisticData, successData, failureData} = onyxData ?? { } ;
3481
3475
@@ -3522,8 +3516,6 @@ function shareTrackedExpense(
3522
3516
policyExpenseCreatedReportActionID : createdWorkspaceParams ?. expenseCreatedReportActionID ,
3523
3517
adminsChatReportID : createdWorkspaceParams ?. adminsChatReportID ,
3524
3518
adminsCreatedReportActionID : createdWorkspaceParams ?. adminsCreatedReportActionID ,
3525
- waypoints,
3526
- customUnitRateID,
3527
3519
} ;
3528
3520
3529
3521
API . write ( WRITE_COMMANDS . SHARE_TRACKED_EXPENSE , parameters , { optimisticData, successData, failureData} ) ;
@@ -3827,8 +3819,6 @@ function trackExpense(
3827
3819
value : recentServerValidatedWaypoints ,
3828
3820
} ) ;
3829
3821
3830
- const waypoints = validWaypoints ? JSON . stringify ( sanitizeRecentWaypoints ( validWaypoints ) ) : undefined ;
3831
-
3832
3822
switch ( action ) {
3833
3823
case CONST . IOU . ACTION . CATEGORIZE : {
3834
3824
if ( ! linkedTrackedExpenseReportAction || ! actionableWhisperReportActionID || ! linkedTrackedExpenseReportID ) {
@@ -3859,8 +3849,6 @@ function trackExpense(
3859
3849
billable ,
3860
3850
trackedReceipt ,
3861
3851
createdWorkspaceParams ,
3862
- waypoints ,
3863
- customUnitRateID ,
3864
3852
) ;
3865
3853
break ;
3866
3854
}
@@ -3892,8 +3880,6 @@ function trackExpense(
3892
3880
billable ,
3893
3881
trackedReceipt ,
3894
3882
createdWorkspaceParams ,
3895
- waypoints ,
3896
- customUnitRateID ,
3897
3883
) ;
3898
3884
break ;
3899
3885
}
@@ -3922,7 +3908,7 @@ function trackExpense(
3922
3908
receiptGpsPoints : gpsPoints ? JSON . stringify ( gpsPoints ) : undefined ,
3923
3909
transactionThreadReportID : transactionThreadReportID ?? '-1' ,
3924
3910
createdReportActionIDForThread : createdReportActionIDForThread ?? '-1' ,
3925
- waypoints,
3911
+ waypoints : validWaypoints ? JSON . stringify ( sanitizeRecentWaypoints ( validWaypoints ) ) : undefined ,
3926
3912
customUnitRateID,
3927
3913
} ;
3928
3914
if ( actionableWhisperReportActionIDParam ) {
0 commit comments