diff --git a/compliant-reward-distribution/frontend/src/components/Admin/ConnectWalletAdmin.tsx b/compliant-reward-distribution/frontend/src/components/Admin/ConnectWalletAdmin.tsx index 928edbc4..b19fe6c7 100644 --- a/compliant-reward-distribution/frontend/src/components/Admin/ConnectWalletAdmin.tsx +++ b/compliant-reward-distribution/frontend/src/components/Admin/ConnectWalletAdmin.tsx @@ -47,7 +47,7 @@ const ConnectWalletAdmin = () => { } catch (error) { console.error('Error:', error); } - }, [provider]); + }, [provider, setConnectedAccount]); return (
diff --git a/compliant-reward-distribution/frontend/src/components/connect-wallet/ConnectWallet.tsx b/compliant-reward-distribution/frontend/src/components/connect-wallet/ConnectWallet.tsx index ba241a44..24829eff 100644 --- a/compliant-reward-distribution/frontend/src/components/connect-wallet/ConnectWallet.tsx +++ b/compliant-reward-distribution/frontend/src/components/connect-wallet/ConnectWallet.tsx @@ -52,7 +52,7 @@ const ConnectWallet = () => { } catch (error) { console.error('Error:', error); } - }, [provider]); + }, [provider, setConnectedAccount]); return (