-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: account tokens #450
feat: account tokens #450
Conversation
Deployed to https://pr-450-aescan.stg.aepps.com |
@@ -40,7 +40,7 @@ export function formatAePrice(price, maxDigits = 8) { | |||
decimals = decimals?.replace(/0+$/, '') | |||
|
|||
if (!decimals) { | |||
return integers === '0' ? `~${integers} AE` : `${formatNumber(integers)} AE` | |||
return integers === '0' && decimals !== '' ? `~${integers} AE` : `${formatNumber(integers)} AE` |
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.
Otherwise, 0 is rendered as ~0
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.
Good job, I left some suggestions.
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.
Looks solid to me 🦾 Good job. Left just one label change for consistency
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.
@Liubov-crypto please take a look at this one at your convenience |
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.
LGTM
Description
Resolves #62
Demo
2023-08-16.09-53-11.mp4
Checklist: