Skip to content

Commit

Permalink
Merge branch 'staging' into 104-add-inconvenience-compensation-in-the…
Browse files Browse the repository at this point in the history
…-reimburse-dialog-box
  • Loading branch information
gonzamontiel authored Jul 13, 2023
2 parents 75ce486 + da107d8 commit 23e0726
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/GlobalStateProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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]);

Expand Down
15 changes: 8 additions & 7 deletions src/assets/pendulum-icon-loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 23e0726

Please sign in to comment.