fix(feed): restore multiboard loading placeholder

This commit is contained in:
Tommaso Casaburi
2026-04-15 13:18:03 +07:00
parent 45567013fc
commit 431f84b871
+8
View File
@@ -182,6 +182,14 @@ export const useFeedStateString = (communityAddresses?: string[]): string | unde
stateString += ' via IPFS';
}
if (!stateString && communityAddresses?.length) {
const count = communityAddresses.length;
stateString = `downloading ${count} ${count === 1 ? 'board' : 'boards'}`;
if (count <= 5) {
stateString += ` (${communityAddresses.map((a) => getShortAddress(a) || a).join(', ')})`;
}
}
// capitalize first letter
stateString = stateString.charAt(0).toUpperCase() + stateString.slice(1);