diff --git a/src/actions/counterValues.js b/src/actions/counterValues.js index db753ed8..58ea6e8a 100644 --- a/src/actions/counterValues.js +++ b/src/actions/counterValues.js @@ -2,8 +2,8 @@ import { getFiatUnit } from '@ledgerhq/currencies' import { fetchHistodayCounterValuesMultiple } from '@ledgerhq/wallet-common/lib/api/countervalue' -import type { Currency } from '@ledgerhq/currencies' +import type { Currency } from '@ledgerhq/currencies' import type { Dispatch } from 'redux' import db from 'helpers/db' @@ -29,6 +29,7 @@ export const fetchCounterValues: FetchCounterValues = (currencies: ?(Currency[]) if (!currencies) { currencies = accounts.map(a => a.currency) } + const { counterValue } = settings const fiatUnit = getFiatUnit(counterValue) const counterValues = await fetchHistodayCounterValuesMultiple(currencies, fiatUnit) diff --git a/src/components/base/Chart/Tooltip.js b/src/components/base/Chart/Tooltip.js index 7b4aad3e..45651e67 100644 --- a/src/components/base/Chart/Tooltip.js +++ b/src/components/base/Chart/Tooltip.js @@ -51,7 +51,7 @@ const Tooltip = ({ left: 0, transform: `translate3d(-50%, 0, 0)`, whiteSpace: 'nowrap', - marginBottom: 10, + marginBottom: 5, }} > @@ -68,9 +68,7 @@ const Tooltip = ({ /> )} -
- -
+ ) diff --git a/src/components/modals/AddAccount/index.js b/src/components/modals/AddAccount/index.js index c62f15d8..9fee169e 100644 --- a/src/components/modals/AddAccount/index.js +++ b/src/components/modals/AddAccount/index.js @@ -131,7 +131,7 @@ class AddAccountModal extends PureComponent { stepIndex: 0, }) - await fetchCounterValues(currency.coinType) + await fetchCounterValues([currency]) this.setState({ fetchingCounterValues: false, diff --git a/src/reducers/counterValues.js b/src/reducers/counterValues.js index ca37d382..c662c04f 100644 --- a/src/reducers/counterValues.js +++ b/src/reducers/counterValues.js @@ -8,8 +8,8 @@ import { makeReverseCounterValue, formatCounterValueDay, } from '@ledgerhq/wallet-common/lib/helpers/countervalue' -import type { CalculateCounterValue } from '@ledgerhq/wallet-common/lib/types' +import type { CalculateCounterValue } from '@ledgerhq/wallet-common/lib/types' import type { State } from 'reducers' export type CounterValuesState = {}