Skip to content

fix: INR currency rate mismatch in formatPrice() #7824

Description

@Harishrs2006

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions