Skip to content

Commit

Permalink
removed unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rojiphil committed Nov 1, 2023
1 parent 1363569 commit 0afb9dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libs/DistanceRequestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const getDistanceMerchant = (hasRoute, distanceInMeters, unit, rate, currency, t
const singularDistanceUnit = unit === CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES ? translate('common.mile') : translate('common.kilometer');
const unitString = distanceInUnits === 1 ? singularDistanceUnit : distanceUnit;
const ratePerUnit = rate ? PolicyUtils.getUnitRateValue({rate}, toLocaleDigit) : translate('common.tbd');
// Set the currency symbol only if rate is valid
const currencySymbol = rate ? CurrencyUtils.getCurrencySymbol(currency) || `${currency} ` : '';

return `${distanceInUnits} ${unitString} @ ${currencySymbol}${ratePerUnit} / ${singularDistanceUnit}`;
Expand Down

0 comments on commit 0afb9dd

Please sign in to comment.