Merge pull request #45 from emailerfacu-spec/dev

Hotfix-2: hotfix siguie llamando al length
This commit is contained in:
emailerfacu-spec
2025-12-26 11:37:28 -03:00
committed by GitHub

View File

@@ -48,7 +48,7 @@
} }
</script> </script>
<!-- {$inspect(data)} --> {$inspect(data)}
<Card class="mb-2 flex overflow-hidden"> <Card class="mb-2 flex overflow-hidden">
<CardContent> <CardContent>
{#if cargando} {#if cargando}
@@ -124,7 +124,9 @@
<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 || 0}</Badge> {#if data.seguidos.response.length !== undefined}
<Badge variant="secondary">{data.seguidos.response.length || 0}</Badge>
{/if}
</CardHeader> </CardHeader>
<CardContent> <CardContent>
{#if data.seguidos.response.length || 0 === 0} {#if data.seguidos.response.length || 0 === 0}
@@ -143,7 +145,9 @@
<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 || 0}</Badge> {#if data.seguidores.response.length !== undefined}
<Badge variant="secondary">{data.seguidores.response.length || 0}</Badge>
{/if}
</CardHeader> </CardHeader>
<CardContent> <CardContent>
{#if data.seguidores.response.length || 0 === 0} {#if data.seguidores.response.length || 0 === 0}