Skip to content

Commit

Permalink
fix: correct call to add torus plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Nov 7, 2022
1 parent ede984e commit 14abfc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/core/wallet/providers/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export const WalletProvider = ({
];

connectors
.find((c) => c instanceof Web3AuthConnector)
?.addPlugin(torusPlugin);
?.find((c) => c instanceof Web3AuthConnector)
?.web3AuthInstance?.addPlugin?.(torusPlugin);

return connectors;
}, [appName, darkMode]);
Expand Down

0 comments on commit 14abfc7

Please sign in to comment.