-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
@@ -221,7 +224,7 @@ const SuggestedCards: React.FC = () => { | |||
priceWithCurrency={formatPriceWithCurrency( | |||
market.parsedMid ?? 0, | |||
market.priceCurrency, | |||
3 | |||
4 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
No description provided.