kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix infinite loading when signed in with bunker URI
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1767deno-prep
rodzic
d6fb1a4c93
commit
db203bcb56
|
@ -44,7 +44,7 @@ const SoapboxLoad: React.FC<ISoapboxLoad> = ({ children }) => {
|
||||||
const [localeLoading, setLocaleLoading] = useState(true);
|
const [localeLoading, setLocaleLoading] = useState(true);
|
||||||
const [isLoaded, setIsLoaded] = useState(false);
|
const [isLoaded, setIsLoaded] = useState(false);
|
||||||
|
|
||||||
const { hasNostr, isRelayOpen } = useNostr();
|
const { hasNostr, isRelayOpen, signer } = useNostr();
|
||||||
const { isSubscribed } = useSignerStream();
|
const { isSubscribed } = useSignerStream();
|
||||||
|
|
||||||
/** Whether to display a loading indicator. */
|
/** Whether to display a loading indicator. */
|
||||||
|
@ -55,7 +55,7 @@ const SoapboxLoad: React.FC<ISoapboxLoad> = ({ children }) => {
|
||||||
localeLoading,
|
localeLoading,
|
||||||
instance.isLoading,
|
instance.isLoading,
|
||||||
swUpdating,
|
swUpdating,
|
||||||
hasNostr && me && (!isRelayOpen || !isSubscribed),
|
hasNostr && me && signer && (!isRelayOpen || !isSubscribed),
|
||||||
].some(Boolean);
|
].some(Boolean);
|
||||||
|
|
||||||
// Load the user's locale
|
// Load the user's locale
|
||||||
|
|
Ładowanie…
Reference in New Issue