Skip to content

Commit

Permalink
Merge pull request #41214 from Expensify/alberto-fixGps
Browse files Browse the repository at this point in the history
Rename GPS points parameter
  • Loading branch information
tgolen authored May 1, 2024
2 parents 4e2d17e + 3956efd commit 7663d44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libs/API/parameters/RequestMoneyParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type RequestMoneyParams = {
taxCode: string;
taxAmount: number;
billable?: boolean;
gpsPoints?: string;
receiptGpsPoints?: string;
transactionThreadReportID: string;
createdReportActionIDForThread: string;
};
Expand Down
2 changes: 1 addition & 1 deletion src/libs/API/parameters/TrackExpenseParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type TrackExpenseParams = {
taxCode: string;
taxAmount: number;
billable?: boolean;
gpsPoints?: string;
receiptGpsPoints?: string;
transactionThreadReportID: string;
createdReportActionIDForThread: string;
waypoints?: string;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3318,7 +3318,7 @@ function requestMoney(
taxAmount,
billable,
// This needs to be a string of JSON because of limitations with the fetch() API and nested objects
gpsPoints: gpsPoints ? JSON.stringify(gpsPoints) : undefined,
receiptGpsPoints: gpsPoints ? JSON.stringify(gpsPoints) : undefined,
transactionThreadReportID,
createdReportActionIDForThread,
};
Expand Down Expand Up @@ -3532,7 +3532,7 @@ function trackExpense(
taxAmount,
billable,
// This needs to be a string of JSON because of limitations with the fetch() API and nested objects
gpsPoints: gpsPoints ? JSON.stringify(gpsPoints) : undefined,
receiptGpsPoints: gpsPoints ? JSON.stringify(gpsPoints) : undefined,
transactionThreadReportID,
createdReportActionIDForThread,
waypoints: validWaypoints ? JSON.stringify(validWaypoints) : undefined,
Expand Down

0 comments on commit 7663d44

Please sign in to comment.