mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-22 16:27:55 -03:00
fix: fallaba al mostrar pagina si bio == null
This commit is contained in:
@@ -90,9 +90,11 @@
|
|||||||
{usu.displayName}
|
{usu.displayName}
|
||||||
<p class="ml-2 text-2xl font-medium text-muted-foreground">@{data.username}</p>
|
<p class="ml-2 text-2xl font-medium text-muted-foreground">@{data.username}</p>
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
{#if usu.bio}
|
||||||
{@html usu.bio.replaceAll("\n", "<br>")}
|
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
||||||
</p>
|
{@html usu.bio.replaceAll('\n', '<br>')}
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<div class="relative flex w-full items-center justify-center">
|
<div class="relative flex w-full items-center justify-center">
|
||||||
<Avatar
|
<Avatar
|
||||||
@@ -111,11 +113,13 @@
|
|||||||
{usu.displayName}
|
{usu.displayName}
|
||||||
<p class="ml-2 text-2xl font-medium text-muted-foreground">@{data.username}</p>
|
<p class="ml-2 text-2xl font-medium text-muted-foreground">@{data.username}</p>
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
{#if usu.bio}
|
||||||
{@html usu.bio.replaceAll("\n", "<br>")}
|
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
||||||
</p>
|
{@html usu.bio.replaceAll('\n', '<br>')}
|
||||||
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex gap-2 mt-2">
|
{/if}
|
||||||
|
<div class="mt-2 flex gap-2">
|
||||||
<Card class="w-full">
|
<Card class="w-full">
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<CardHeader class="flex justify-between">
|
<CardHeader class="flex justify-between">
|
||||||
|
|||||||
Reference in New Issue
Block a user