Merge branch 'fix-bunker-load' into 'main'
Fix infinite loading when signed in with bunker URI Closes #1767 See merge request soapbox-pub/soapbox!3177
This commit is contained in:
commit
eb54495c10
|
@ -44,7 +44,7 @@ const SoapboxLoad: React.FC<ISoapboxLoad> = ({ 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<ISoapboxLoad> = ({ children }) => {
|
|||
localeLoading,
|
||||
instance.isLoading,
|
||||
swUpdating,
|
||||
hasNostr && me && (!isRelayOpen || !isSubscribed),
|
||||
hasNostr && me && signer && (!isRelayOpen || !isSubscribed),
|
||||
].some(Boolean);
|
||||
|
||||
// Load the user's locale
|
||||
|
|
Loading…
Reference in New Issue