Skip to content

Commit

Permalink
Fix signing client when no wallet connected
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Nov 14, 2023
1 parent 42a08c8 commit 88c8ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy-web/src/context/WalletProvider/WalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export const WalletProvider = ({ children }) => {

useEffect(() => {
(async () => {
if (settings?.rpcEndpoint) {
sigingClient.current = await createStargateClient();
if (settings?.rpcEndpoint && isWalletConnected) {
sigingClient.current = await createStargateClient();console.log("Setup client for " + settings?.rpcEndpoint);
}
})();
}, [settings?.rpcEndpoint]);
}, [settings?.rpcEndpoint, isWalletConnected]);

async function createStargateClient() {
const selectedNetwork = getSelectedNetwork();
Expand Down

0 comments on commit 88c8ff8

Please sign in to comment.