From c3109369d4e50ee143ec200a735790292364f5cb Mon Sep 17 00:00:00 2001 From: Nicolas Henin Date: Sat, 4 Nov 2023 06:27:58 +0100 Subject: [PATCH] Connection issue Fix (#28) --- src/components/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 5b83051..b9e79c9 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -24,8 +24,9 @@ const claimerPage = "Claimer's View" const isClaimerPage = (page:Page) => page === claimerPage const App: React.FC = ({runtimeURL,marloweScanURL,dAppId}) => { + const selectedWalletExtensionName = localStorage.getItem('walletProvider'); const [isWaitingConfirmation, setWaitingConfirmation] = useState(false); - const [isConnected, setIsConnected] = useState(false); + const [isConnected, setIsConnected] = useState(selectedWalletExtensionName?true:false); const [currentPage, setCurrentPage] = useState("About"); const [toasts, setToasts] = useState([]);