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

Jon/fix/coin-rank-default-fiat #4154

Merged
merged 3 commits into from May 1, 2023
Merged

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Apr 26, 2023

image
image

CHANGELOG

  • fixed: Respect default fiat setting in CoinRank components.

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

@@ -11,6 +11,9 @@ import { getSymbolFromCurrency } from '../../constants/WalletAndCurrencyConstant
import { formatFiatString } from '../../hooks/useFiatText'
import { useHandler } from '../../hooks/useHandler'
import { formatDate } from '../../locales/intl'
import { getDefaultFiat } from '../../selectors/SettingsSelectors'
Copy link
Member

Choose a reason for hiding this comment

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

pass fiat as param from router

const rawChartData = marketChartRange.prices.map(rawDataPoint => {
return {
x: new Date(rawDataPoint[0]),
y: parseFloat(convertCurrencyFromExchangeRates(exchangeRates, 'iso:USD', `iso:${defaultFiat}`, rawDataPoint[1].toString()))
Copy link
Member

Choose a reason for hiding this comment

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

Use getHistoricalRate to prevent using redux

@Jon-edge Jon-edge force-pushed the jon/fix/coin-rank-default-fiat branch from b9f00fd to d6dbc77 Compare April 28, 2023 00:37
@Jon-edge Jon-edge force-pushed the jon/fix/coin-rank-default-fiat branch from d6dbc77 to 1f3753a Compare May 1, 2023 18:09
@Jon-edge Jon-edge enabled auto-merge May 1, 2023 18:19
@Jon-edge Jon-edge force-pushed the jon/fix/coin-rank-default-fiat branch from 1f3753a to 8880b64 Compare May 1, 2023 18:25
Also implement UX audit feedback of clarifying the timespan button labels.
Ensure localized decimal characters are used
@Jon-edge Jon-edge force-pushed the jon/fix/coin-rank-default-fiat branch from 8880b64 to bf3218f Compare May 1, 2023 19:10
@Jon-edge Jon-edge merged commit 696bfd9 into develop May 1, 2023
2 checks passed
@Jon-edge Jon-edge deleted the jon/fix/coin-rank-default-fiat branch May 1, 2023 19:19
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.

None yet

2 participants