Merge pull request #44 from emailerfacu-spec/dev

Hotfix-1
This commit is contained in:
emailerfacu-spec
2025-12-26 11:24:24 -03:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -124,10 +124,10 @@
<CardContent> <CardContent>
<CardHeader class="flex justify-between"> <CardHeader class="flex justify-between">
<CardTitle>Seguidos:</CardTitle> <CardTitle>Seguidos:</CardTitle>
<Badge variant="secondary">{data.seguidos.response.length}</Badge> <Badge variant="secondary">{data.seguidos.response.length || 0}</Badge>
</CardHeader> </CardHeader>
<CardContent> <CardContent>
{#if data.seguidos.response.length === 0} {#if data.seguidos.response.length || 0 === 0}
<h3>No hay Seguidos</h3> <h3>No hay Seguidos</h3>
{:else} {:else}
{#each data.seguidos.response as seguidos (seguidos.id)} {#each data.seguidos.response as seguidos (seguidos.id)}
@@ -143,10 +143,10 @@
<CardContent> <CardContent>
<CardHeader class="flex justify-between"> <CardHeader class="flex justify-between">
<CardTitle>Seguidores:</CardTitle> <CardTitle>Seguidores:</CardTitle>
<Badge variant="secondary">{data.seguidores.response.length}</Badge> <Badge variant="secondary">{data.seguidores.response.length || 0}</Badge>
</CardHeader> </CardHeader>
<CardContent> <CardContent>
{#if data.seguidores.response.length === 0} {#if data.seguidores.response.length || 0 === 0}
<h3>No hay Seguidores</h3> <h3>No hay Seguidores</h3>
{:else} {:else}
{#each data.seguidores.response as seguidores (seguidores.id)} {#each data.seguidores.response as seguidores (seguidores.id)}

View File

@@ -26,7 +26,6 @@
let postAModificar: Post | null = $state(null); let postAModificar: Post | null = $state(null);
let showCrearPost = $state(false); let showCrearPost = $state(false);
const toggleCrearPost = () => (showCrearPost = !showCrearPost);
let data = $derived(page.data); let data = $derived(page.data);