diff --git a/helpers/services.js b/helpers/services.js index f7cb0be4..18c50611 100644 --- a/helpers/services.js +++ b/helpers/services.js @@ -45,7 +45,10 @@ export const legacyInjectedProviderToWallet = (service, wallet) => { return { ...rest, wallet, - provider: walletToProvider(wallet, provider), + provider: { + ...walletToProvider(wallet), + ...service.provider, + }, } } @@ -79,17 +82,6 @@ export const combineServices = ( return combined } -// TODO: flesh out -export const convertLegacyServices = (services = []) => { - return services.map(service => { - const { provider, ...rest } = service - return { - ...rest, - provider: provider, - } - }) -} - export const serviceListOfType = (services = [], type) => services.filter(service => service.type === type)