Skip to content

Commit

Permalink
change disconnectWallet to disableWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworzen1 committed May 8, 2024
1 parent 731facb commit f73e09d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions govtool/packages/wallet-connector/WalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ const WalletProvider = ({ children }: WalletContextProviderProps) => {
}
};

const disconnectWallet = () => {
const disableWallet = () => {
setWalletAPI(null);
};

const value = useMemo(
() => ({
disconnectWallet,
disableWallet,
enableError,
enableWallet,
isEnableLoading,
walletAPI,
}),
[disconnectWallet, enableError, enableWallet, isEnableLoading, walletAPI]
[disableWallet, enableError, enableWallet, isEnableLoading, walletAPI]
);

return (
Expand Down
2 changes: 1 addition & 1 deletion govtool/packages/wallet-connector/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type WalletContextProviderProps = {
};

export type WalletContextValues = {
disconnectWallet: () => void;
disableWallet: () => void;
enableError: string | null;
enableWallet: (walletName: string) => Promise<void>;
isEnableLoading: boolean;
Expand Down

0 comments on commit f73e09d

Please sign in to comment.