Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Change tilde display in Assets #1639

Merged
merged 2 commits into from
Dec 4, 2019
Merged

Change tilde display in Assets #1639

merged 2 commits into from
Dec 4, 2019

Conversation

cehali
Copy link
Collaborator

@cehali cehali commented Dec 4, 2019

Summary

Change tilde display in Assets

@cehali
Copy link
Collaborator Author

cehali commented Dec 4, 2019

Before:
image
After:
image

@cehali
Copy link
Collaborator Author

cehali commented Dec 4, 2019

Before:
image
After:
image

export const formatCurrencyWithTilda = (amount: string, currency = 'USD') => {
const formattedAmount = formatCurrency(amount, currency);
return !amount || amount === '0' ? formattedAmount : `~ ${formattedAmount}`;
export const getTildeGivenAmount = (amount: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

getPerfixIfAmountPresent(prefix, amount)

@marekkirejczyk marekkirejczyk added the auto-merge Allow Mergify.io bot to update and merge the PR label Dec 4, 2019
@marekkirejczyk marekkirejczyk merged commit fc4cc08 into master Dec 4, 2019
@marekkirejczyk marekkirejczyk deleted the change-tilde-display branch December 4, 2019 12:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-merge Allow Mergify.io bot to update and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants