layer5io / layer5io/layer5

fix: INR currency rate mismatch in formatPrice()

Open
#7,824 1 comment 0 reactions 1 assignee View on GitHub

@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() 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.