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

fix value formatting and UI layout bug #165

Merged
merged 2 commits into from
May 14, 2024
Merged

fix value formatting and UI layout bug #165

merged 2 commits into from
May 14, 2024

Conversation

mike-dydx
Copy link
Contributor

@mike-dydx mike-dydx commented May 14, 2024

Links (dYdX Internal Use Only)

Linear Tickets:


Description / Intuition

see screenshots


Before/After Screenshots or Videos

Before After

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring or Technical Debt
  • Documentation update
  • Other (please describe: )

@@ -71,7 +71,7 @@ class dydxMarketPositionViewPresenter: HostedViewPresenter<dydxMarketPositionVie
viewModel?.logoUrl = sharedOrderViewModel.logoUrl
viewModel?.gradientType = sharedOrderViewModel.gradientType

viewModel?.amount = dydxFormatter.shared.dollar(number: position.valueTotal?.current?.doubleValue, digits: configs.displayTickSizeDecimals?.intValue ?? 0)
viewModel?.amount = dydxFormatter.shared.dollar(number: position.valueTotal?.current?.doubleValue, digits: 2)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is USDC value so should be 2

@ruixhuang ruixhuang merged commit 51645f8 into develop May 14, 2024
2 checks passed
@ruixhuang ruixhuang deleted the mike/small-bugs branch May 14, 2024 16:35
mike-dydx added a commit that referenced this pull request Aug 20, 2024
* value formatting updates

* fix height for tabgroup with varied elements
mike-dydx added a commit that referenced this pull request Aug 21, 2024
* value formatting updates

* fix height for tabgroup with varied elements
mike-dydx added a commit that referenced this pull request Aug 21, 2024
* value formatting updates

* fix height for tabgroup with varied elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants