Merge branch 'crypto-limit-compare' into 'develop'

Fix: '0' Showing above instance name on the home page

Closes #1002

See merge request soapbox-pub/soapbox-fe!1575
This commit is contained in:
marcin mikołajczak 2022-06-26 20:08:41 +00:00
commit c203be1515

View file

@ -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 : '';
@ -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>