From 28a879796d7a8de1a1895a6c3a91eb4855ccccb0 Mon Sep 17 00:00:00 2001 From: pociej Date: Wed, 10 Apr 2024 14:57:51 +0200 Subject: [PATCH] feat: do not throw when there is no WalletAddress #49 --- frontend/src/components/RegisterButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/RegisterButton.tsx b/frontend/src/components/RegisterButton.tsx index b8c1ac2..35d4876 100644 --- a/frontend/src/components/RegisterButton.tsx +++ b/frontend/src/components/RegisterButton.tsx @@ -11,7 +11,7 @@ export const RegisterButton = ({ isVisible }: { isVisible: boolean }) => { const { login, tokens, isWaiting } = useLogin(); if (!walletAddress) { - throw new Error("Wallet address not found"); + return <>; } const debouncedPending = useDebounce(