Skip to content

Commit

Permalink
Fix if somehow mileageRate is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-marcellini committed Oct 15, 2024
1 parent a2f0074 commit 00eeb4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/DistanceRequestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function getRate({
return {
...mileageRate,
unit,
currency: mileageRate.currency ?? policyCurrency,
currency: mileageRate?.currency ?? policyCurrency,
};
}

Expand Down

0 comments on commit 00eeb4a

Please sign in to comment.