fix undefined

This commit is contained in:
plebeius.eth
2023-07-25 20:35:41 +02:00
parent c6330a02a8
commit a6dd7b2dfa
@@ -425,11 +425,11 @@ const SubscriptionsCatalog = () => {
</div>
<>
<div className="board-title">Subscriptions</div>
{account.subscriptions.length < 1 ? (
{account?.subscriptions.length < 1 ? (
<div className="board-address">You haven't subscribed to any board yet.</div>
) : (
<div className="board-address">
You have subscribed to {account.subscriptions.length} board{account.subscriptions.length > 1 ? "s" : null}.
You have subscribed to {account?.subscriptions.length} board{account?.subscriptions.length > 1 ? "s" : null}.
</div>
)}
</>