Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update price formatting logic in market components for better precision #86

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

AndresImach
Copy link
Contributor

No description provided.

@@ -221,7 +224,7 @@ const SuggestedCards: React.FC = () => {
priceWithCurrency={formatPriceWithCurrency(
market.parsedMid ?? 0,
market.priceCurrency,
3
4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be the same as above L184-187

@@ -181,7 +181,10 @@ const SuggestedCards: React.FC = () => {
priceWithCurrency={formatPriceWithCurrency(
market.parsedMid ?? 0,
market.priceCurrency,
3
Number(market.parsedMid) > 10000 &&
Number(market.priceCurrency) < 1000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be
Number(market.parsedMid)

@@ -221,7 +224,10 @@ const SuggestedCards: React.FC = () => {
priceWithCurrency={formatPriceWithCurrency(
market.parsedMid ?? 0,
market.priceCurrency,
3
Number(market.parsedMid) > 10000 &&
Number(market.priceCurrency) < 1000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be
Number(market.parsedMid)

@TomasCImach TomasCImach merged commit 97a9e3f into main Jan 27, 2025
1 check passed
@TomasCImach TomasCImach deleted the fix-exponential-price branch January 27, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants