Fix blackout bug when selecting global tab

This commit is contained in:
h3y6e 2023-02-15 00:18:53 +09:00
parent b75dc2d8d8
commit 45037325f6
No known key found for this signature in database
GPG Key ID: 60BF4DA37DCACBF0

View File

@ -84,11 +84,10 @@ export default function RootPage() {
return { type: "pubkey", items: follows, discriminator: "follows" };
})();
if (isGlobal && globalRelays.length === 0) return null;
return (
<>
<div className="main-content">{pubKey && <Tabs tabs={tabs} tab={tab} setTab={setTab} />}</div>
{isGlobal && (
{isGlobal && globalRelays.length > 0 && (
<div className="flex mb10">
<div className="f-grow">
<FormattedMessage