From db203bcb56aef9f8927ce8c6a113b806d9ffe38d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 22 Oct 2024 16:04:56 -0500 Subject: [PATCH] Fix infinite loading when signed in with bunker URI Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1767 --- src/init/soapbox-load.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init/soapbox-load.tsx b/src/init/soapbox-load.tsx index 97c0a7efc..7f3c90685 100644 --- a/src/init/soapbox-load.tsx +++ b/src/init/soapbox-load.tsx @@ -44,7 +44,7 @@ const SoapboxLoad: React.FC = ({ children }) => { const [localeLoading, setLocaleLoading] = useState(true); const [isLoaded, setIsLoaded] = useState(false); - const { hasNostr, isRelayOpen } = useNostr(); + const { hasNostr, isRelayOpen, signer } = useNostr(); const { isSubscribed } = useSignerStream(); /** Whether to display a loading indicator. */ @@ -55,7 +55,7 @@ const SoapboxLoad: React.FC = ({ children }) => { localeLoading, instance.isLoading, swUpdating, - hasNostr && me && (!isRelayOpen || !isSubscribed), + hasNostr && me && signer && (!isRelayOpen || !isSubscribed), ].some(Boolean); // Load the user's locale