diff --git a/src/main/counterValuesSync.js b/src/main/counterValuesSync.js index 9c032167..d1419810 100644 --- a/src/main/counterValuesSync.js +++ b/src/main/counterValuesSync.js @@ -1,12 +1,12 @@ // @flow -import { fetchCurrentCounterValues } from '@ledgerhq/wallet-common/lib/api/countervalue' +import { fetchCurrentRates } from '@ledgerhq/wallet-common/lib/api/countervalue' type SendFunction = (type: string, data: *) => void export default async (send: SendFunction, { counterValue, currencies }: Object) => { try { - const data = await fetchCurrentCounterValues(currencies, counterValue) + const data = await fetchCurrentRates(currencies, counterValue) send('counterValues.update', data) } catch (err) { console.error(err) // eslint-disable-line no-console