Skip to content

Commit

Permalink
Fix: '0' Showing above instance name on the home page
Browse files Browse the repository at this point in the history
Signed-off-by: marcin mikołajczak <[email protected]>
  • Loading branch information
mkljczk committed Jun 26, 2022
1 parent 6f231cd commit 64c37d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/soapbox/pages/home_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const HomePage: React.FC = ({ children }) => {

const hasPatron = soapboxConfig.extensions.getIn(['patron', 'enabled']) === true;
const hasCrypto = typeof soapboxConfig.cryptoAddresses.getIn([0, 'ticker']) === 'string';
const cryptoLimit = soapboxConfig.cryptoDonatePanel.get('limit');
const cryptoLimit = soapboxConfig.cryptoDonatePanel.get('limit', 0);

const acct = account ? account.acct : '';

Expand Down Expand Up @@ -81,7 +81,7 @@ const HomePage: React.FC = ({ children }) => {
{Component => <Component />}
</BundleContainer>
)}
{hasCrypto && cryptoLimit && cryptoLimit > 0 && (
{hasCrypto && cryptoLimit > 0 && (
<BundleContainer fetchComponent={CryptoDonatePanel}>
{Component => <Component limit={cryptoLimit} />}
</BundleContainer>
Expand Down

0 comments on commit 64c37d9

Please sign in to comment.