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

Display the USD equivalent of all fees regardless of designated currency #1593

Merged
merged 14 commits into from
Feb 9, 2024

Conversation

yuli-ferna
Copy link
Collaborator

@yuli-ferna yuli-ferna commented Feb 1, 2024

Issue: #1436

Result:
image

image

image

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for wormhole-connect ready!

Name Link
🔨 Latest commit 81b4950
🔍 Latest deploy log https://app.netlify.com/sites/wormhole-connect/deploys/65c63945bc246b000849ac95
😎 Deploy Preview https://deploy-preview-1593--wormhole-connect.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for wormhole-connect-builder ready!

Name Link
🔨 Latest commit 81b4950
🔍 Latest deploy log https://app.netlify.com/sites/wormhole-connect-builder/deploys/65c63945a7d035000853b752
😎 Deploy Preview https://deploy-preview-1593--wormhole-connect-builder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for wormhole-connect-mainnet ready!

Name Link
🔨 Latest commit 81b4950
🔍 Latest deploy log https://app.netlify.com/sites/wormhole-connect-mainnet/deploys/65c639452940720008758144
😎 Deploy Preview https://deploy-preview-1593--wormhole-connect-mainnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yuli-ferna yuli-ferna marked this pull request as ready for review February 6, 2024 15:12
@artursapek
Copy link
Collaborator

I would definitely knock that down to two decimal places. showing six decimals on USD seems pretty excessive.

@artursapek
Copy link
Collaborator

@yuli-ferna one other comment: for formatting $ values in javascript in general I highly recommend Intl.NumberFormat. it will handle precision and commas for you.

Intl.NumberFormat('en-EN', { style: "currency", currency: "USD" }).format(4505.22)
'$4,505.22'

I'd expect some people are moving 6+ figure USD values with Connect. these numbers can get hard to read if you don't have commas.

@yuli-ferna
Copy link
Collaborator Author

@artursapek Thanks for the advice, I upload the changes

@yuli-ferna yuli-ferna requested a review from artursapek February 9, 2024 12:23
@yuli-ferna yuli-ferna merged commit fdb77be into development Feb 9, 2024
@yuli-ferna yuli-ferna deleted the feature/show-usd-value branch February 9, 2024 15:15
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.

Display the USD equivalent of all fees regardless of designated currency
3 participants