Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Jul 21, 2024
1 parent d113879 commit a2789dd
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions helpers/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export const legacyInjectedProviderToWallet = (service, wallet) => {
return {
...rest,
wallet,
provider: walletToProvider(wallet, provider),
provider: {
...walletToProvider(wallet),
...service.provider,
},
}
}

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit a2789dd

Please sign in to comment.