diff --git a/packages/ui-kit/src/lib/wallet/components/ConnectPushWalletButton.tsx b/packages/ui-kit/src/lib/wallet/components/ConnectPushWalletButton.tsx index 7985338c..60189de6 100644 --- a/packages/ui-kit/src/lib/wallet/components/ConnectPushWalletButton.tsx +++ b/packages/ui-kit/src/lib/wallet/components/ConnectPushWalletButton.tsx @@ -7,7 +7,7 @@ export type ConnectPushWalletButtonProps = { }; const ConnectPushWalletButton: FC = () => { - const { connectionStatus, handleConnectToPushWallet } = + const { connectionStatus, handleConnectToPushWallet, handleNewConnectionRequest } = usePushWalletContext(); const isConnectButtonDisbaled = @@ -18,11 +18,15 @@ const ConnectPushWalletButton: FC = () => { const isLoading = connectionStatus === 'connecting' || connectionStatus === 'authenticating'; + const handleConnectWalletButton = () => { + connectionStatus === 'retry' ? handleNewConnectionRequest() : handleConnectToPushWallet() + } + return (