Merge pull request #297 from h3y6e/global-tab

Fix blackout when selecting global tab
This commit is contained in:
Kieran 2023-02-14 16:11:59 +00:00 committed by GitHub
commit 1a09d13e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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