HomePage: hide donation widgets until logged in

This commit is contained in:
Alex Gleason 2023-09-21 13:10:25 -05:00
parent a131f274b4
commit ae86a17ea1
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -108,12 +108,12 @@ const HomePage: React.FC<IHomePage> = ({ children }) => {
{Component => <Component limit={5} />}
</BundleContainer>
)}
{hasPatron && (
{(hasPatron && me) && (
<BundleContainer fetchComponent={FundingPanel}>
{Component => <Component />}
</BundleContainer>
)}
{hasCrypto && cryptoLimit > 0 && (
{(hasCrypto && cryptoLimit > 0 && me) && (
<BundleContainer fetchComponent={CryptoDonatePanel}>
{Component => <Component limit={cryptoLimit} />}
</BundleContainer>