mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(feed): restore multiboard loading placeholder
This commit is contained in:
@@ -182,6 +182,14 @@ export const useFeedStateString = (communityAddresses?: string[]): string | unde
|
|||||||
stateString += ' via IPFS';
|
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
|
// capitalize first letter
|
||||||
stateString = stateString.charAt(0).toUpperCase() + stateString.slice(1);
|
stateString = stateString.charAt(0).toUpperCase() + stateString.slice(1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user