From 94a722d51c68eaf7743f1d2dac1cc413ac5bc933 Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 3 Apr 2018 17:14:41 +0200 Subject: [PATCH] Replace deprecated method --- src/main/counterValuesSync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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