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

Simplify the type logic for the amount #82

Closed
Tracked by #146
kkosiorowska opened this issue Dec 18, 2023 · 0 comments
Closed
Tracked by #146

Simplify the type logic for the amount #82

kkosiorowska opened this issue Dec 18, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@kkosiorowska
Copy link
Contributor

Originally posted by @r-czajkowski in #74 (comment)

@kkosiorowska kkosiorowska added this to the MVP milestone Dec 18, 2023
r-czajkowski added a commit that referenced this issue Jan 2, 2024
Closes #82 

The amount for `CurrencyBalance` can be of string or number type. We use
numbers in bigint format, which should be converted to the correct human
format. However, we should allow the use of the `CurrencyBalance`
component in case we don't need the formatting (simple value in USD).
For this, let's use the variable `shouldBeFormatted` and display it as a
local string.
@kkosiorowska kkosiorowska self-assigned this Jan 2, 2024
@nkuba nkuba mentioned this issue Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant