diff --git a/.changeset/dull-countries-carry.md b/.changeset/dull-countries-carry.md new file mode 100644 index 000000000..8d6e33db2 --- /dev/null +++ b/.changeset/dull-countries-carry.md @@ -0,0 +1,7 @@ +--- +'@solana/wallet-adapter-material-ui': patch +'@solana/wallet-adapter-ant-design': patch +'@solana/wallet-adapter-react-ui': patch +--- + +Fix disconnect button disable for MWA diff --git a/packages/ui/ant-design/src/WalletDisconnectButton.tsx b/packages/ui/ant-design/src/WalletDisconnectButton.tsx index c372a0fb1..c54ba7363 100644 --- a/packages/ui/ant-design/src/WalletDisconnectButton.tsx +++ b/packages/ui/ant-design/src/WalletDisconnectButton.tsx @@ -14,7 +14,7 @@ export const WalletDisconnectButton: FC = ({ onClick, ...props }) => { - const { wallet, disconnect, disconnecting } = useWallet(); + const { wallet, connected, disconnect, disconnecting } = useWallet(); const handleClick: MouseEventHandler = useCallback( (event) => { @@ -38,7 +38,7 @@ export const WalletDisconnectButton: FC = ({ return (