fix: INR currency rate mismatch in formatPrice()
Open
@Harishrs2006 is already working on this.
Since Jun 28, 2026.
framework/gatsby
help wanted
kind/bug
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 1.6k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 18
Description
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()usesprice * 88formatSliderPrice()usesprice * rate(88.32)EUR.formatPrice()correctly usesprice * 0.86matching itsrate: 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.