Skip to content

Commit

Permalink
Comment ledger rlogin provider inclusion on the app
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldsg20 authored and alexjavabraz committed Jan 16, 2025
1 parent d8360ec commit ab82fd6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/common/utils/rlogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ export function getRloginInstance(features: Array<Feature>): RLogin {
rpcUrls,
supportedChains,
};
const ledgerFeature = features.find((feature) => feature.name === FeatureNames.WALLET_LEDGER);
if (ledgerFeature?.value === constants.ENABLED
&& ledgerFeature.supportedBrowsers[currentBrowser.toLowerCase() as keyof SupportedBrowsers]) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
rLoginOptions.providerOptions['custom-ledger'] = customLedgerProviderOptions;
}
// const ledgerFeature = features.find((feature) => feature.name === FeatureNames.WALLET_LEDGER);
// if (ledgerFeature?.value === constants.ENABLED
// && ledgerFeature.supportedBrowsers[currentBrowser.toLowerCase() as keyof SupportedBrowsers]) {
// rLoginOptions.providerOptions['custom-ledger'] = customLedgerProviderOptions;
// }
const trezorFeature = features.find((feature) => feature.name === FeatureNames.WALLET_TREZOR);
if (trezorFeature?.value === constants.ENABLED
&& trezorFeature.supportedBrowsers[currentBrowser.toLowerCase() as keyof SupportedBrowsers]) {
Expand Down

0 comments on commit ab82fd6

Please sign in to comment.