Skip to content

Commit

Permalink
Unset defaultP2PRate only if submitting to a policy
Browse files Browse the repository at this point in the history
  • Loading branch information
paultsimura committed Feb 7, 2025
1 parent c711490 commit cb2cca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ function setMoneyRequestDistanceRate(transactionID: string, customUnitRateID: st
comment: {
customUnit: {
customUnitRateID,
defaultP2PRate: null,
...(!!policy && {defaultP2PRate: null}),
...(distanceRate && {distanceUnit: distanceRate.unit}),
},
},
Expand Down

0 comments on commit cb2cca5

Please sign in to comment.