Skip to content

Commit

Permalink
Merge pull request #30459 from rojiphil/30376-no-currency-for-tbd
Browse files Browse the repository at this point in the history
ignore currency symbol for tbd
  • Loading branch information
luacmartins authored Nov 2, 2023
2 parents a2bd366 + 0afb9dd commit f7d7a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/DistanceRequestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ 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');
const currencySymbol = CurrencyUtils.getCurrencySymbol(currency) || `${currency} `;
const currencySymbol = rate ? CurrencyUtils.getCurrencySymbol(currency) || `${currency} ` : '';

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

0 comments on commit f7d7a9d

Please sign in to comment.