Bug Description
In src/utils/currencies.js, the INR currency entry declares rate: 88.32
but formatPrice() hardcodes price * 88 as the multiplier.
This causes all INR prices rendered via formatAndConvertPrice() to be
undervalued by ~0.36% compared to the declared rate.
Inconsistency
formatPrice() uses price * 88
formatSliderPrice() uses price * rate (88.32)
EUR.formatPrice() correctly uses price * 0.86 matching its rate: 0.86
So the two INR formatting functions return different values for the same input.
Affected File
src/utils/currencies.js line 36
Fix
Change price * 88 - price * 88.32 to match the declared rate, consistent
with how EUR and the formatSliderPrice utility already handle it.
Bug Description
In
src/utils/currencies.js, theINRcurrency entry declaresrate: 88.32but
formatPrice()hardcodesprice * 88as the multiplier.This causes all INR prices rendered via
formatAndConvertPrice()to beundervalued by ~0.36% compared to the declared rate.
Inconsistency
formatPrice()usesprice * 88formatSliderPrice()usesprice * rate(88.32)EUR.formatPrice()correctly usesprice * 0.86matching itsrate: 0.86So the two INR formatting functions return different values for the same input.
Affected File
src/utils/currencies.jsline 36Fix
Change
price * 88-price * 88.32to match the declared rate, consistentwith how EUR and the
formatSliderPriceutility already handle it.