diff --git a/contracts/test/vault/rebase.js b/contracts/test/vault/rebase.js index f203bd58e5..3416702bcb 100644 --- a/contracts/test/vault/rebase.js +++ b/contracts/test/vault/rebase.js @@ -51,7 +51,7 @@ describe("Vault rebase pausing", async () => { ); }); - it("Should allow governor tonpause rebasing", async () => { + it("Should allow governor to pause rebasing", async () => { let { vault, governor } = await loadFixture(defaultFixture); await vault.connect(governor).pauseRebase(); }); diff --git a/dapp/src/components/AccountListener.js b/dapp/src/components/AccountListener.js index 4263860b4b..6fbd4e7323 100644 --- a/dapp/src/components/AccountListener.js +++ b/dapp/src/components/AccountListener.js @@ -86,6 +86,9 @@ const AccountListener = (props) => { s.allowances = {} s.balances = {} }) + ContractStore.update((s) => { + s.walletConnected = false + }) PoolStore.update((s) => { s.claimable_ogn = null s.lp_tokens = null diff --git a/dapp/src/components/buySell/BalanceHeader.js b/dapp/src/components/buySell/BalanceHeader.js index 344bdcdeee..2c739fccc0 100644 --- a/dapp/src/components/buySell/BalanceHeader.js +++ b/dapp/src/components/buySell/BalanceHeader.js @@ -239,7 +239,9 @@ const BalanceHeader = ({ { try { + if (!walletConnected) { + return + } const response = await fetch(process.env.CREDITS_ANALYTICS_ENDPOINT) if (response.ok) { const json = await response.json()