csr tangled client in solid-js
15

Configure Feed

Select the types of activity you want to include in your feed.

better fix for the empty stat kind thing

dawn (May 30, 2026, 6:37 AM +0300) 5140b505 cb591019

+7 -5
+7 -5
src/pages/profile.tsx
··· 344 344 </For> 345 345 </div> 346 346 347 - <Show when={props.profile?.stats && props.profile.stats.length > 0 && props.profile.stats.every((s: string) => s.length > 0)}> 347 + <Show when={props.profile?.stats && props.profile.stats.length > 0}> 348 348 <div class="flex items-center justify-evenly gap-2 py-2"> 349 349 <For each={props.profile.stats}> 350 350 {(statKind) => ( 351 - <div class="flex flex-col items-center gap-2"> 352 - <span class="text-xl font-bold">{getStatValue(statKind)}</span> 353 - <span>{formatStatLabel(statKind)}</span> 354 - </div> 351 + <Show when={statKind.length > 0}> 352 + <div class="flex flex-col items-center gap-2"> 353 + <span class="text-xl font-bold">{getStatValue(statKind)}</span> 354 + <span>{formatStatLabel(statKind)}</span> 355 + </div> 356 + </Show> 355 357 )} 356 358 </For> 357 359 </div>