From fb7a37cc893bc00a6bfb2085d17cc4dcdae4dfe4 Mon Sep 17 00:00:00 2001 From: Nejc Date: Thu, 13 Jul 2023 23:30:05 +0800 Subject: [PATCH 1/2] fix: wallet connection issues #204 (#209) --- src/GlobalStateProvider.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GlobalStateProvider.tsx b/src/GlobalStateProvider.tsx index cd1f38f0..403324e8 100644 --- a/src/GlobalStateProvider.tsx +++ b/src/GlobalStateProvider.tsx @@ -3,13 +3,13 @@ import { createContext } from 'preact'; import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'preact/compat'; import { useLocation } from 'react-router-dom'; import { config } from './config'; +import { chainIds } from './config/walletConnect'; import { storageKeys } from './constants/localStorage'; import { useLocalStorage } from './hooks/useLocalStorage'; import { TenantName } from './models/Tenant'; import { ThemeName } from './models/Theme'; import { storageService } from './services/storage/local'; import { walletConnectService } from './services/walletConnect'; -import { chainIds } from './config/walletConnect'; export interface GlobalState { dAppName: string; @@ -69,6 +69,8 @@ const GlobalStateProvider = ({ children }: { children: ReactNode }) => { const removeWalletAccount = useCallback(() => { clear(); + // remove talisman + storageService.remove('@talisman-connect/selected-wallet-name'); setWallet(undefined); }, [clear]); From da107d81f549e6e1c6c8f4f347b482baaf6a668b Mon Sep 17 00:00:00 2001 From: Nejc Date: Thu, 13 Jul 2023 23:46:22 +0800 Subject: [PATCH 2/2] refactor: updated logo animation (#203) --- src/assets/pendulum-icon-loading.svg | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/assets/pendulum-icon-loading.svg b/src/assets/pendulum-icon-loading.svg index da2430e0..b849f913 100644 --- a/src/assets/pendulum-icon-loading.svg +++ b/src/assets/pendulum-icon-loading.svg @@ -5,23 +5,24 @@ - + - +