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:
commit
c203be1515
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue