diff --git a/app/soapbox/features/crypto_donate/components/site_wallet.tsx b/app/soapbox/features/crypto_donate/components/site_wallet.tsx index dd11db5b2..062f9f78d 100644 --- a/app/soapbox/features/crypto_donate/components/site_wallet.tsx +++ b/app/soapbox/features/crypto_donate/components/site_wallet.tsx @@ -18,15 +18,17 @@ const normalizeAddress = (address: Address): Address => { }; interface ISiteWallet { - limit: number, + limit?: number, } const SiteWallet: React.FC = ({ limit }): JSX.Element => { - const addresses: ImmutableList
= useSoapboxConfig().get('cryptoAddresses'); - const coinList = addresses.map(normalizeAddress).take(limit); + const addresses: ImmutableList
= + useSoapboxConfig().get('cryptoAddresses').map(normalizeAddress); + + const coinList = typeof limit === 'number' ? addresses.take(limit) : addresses; return ( -
+
{coinList.map(coin => ( +
- {/* + {/* */}