-
+
- {#if page.data.usuarios.length === 0}
+ {#if data.usuarios?.length === 0}
No hay usuarios que mostar
{:else}
- {#key page.data.usuarios}
-
- {/key}
+
{/if}
diff --git a/src/types.d.ts b/src/types.d.ts
index f0d647e..1ebbe92 100644
--- a/src/types.d.ts
+++ b/src/types.d.ts
@@ -1,5 +1,4 @@
export interface Post {
- _id: string;
id: string;
authorId: string;
authorDisplayName: string;
@@ -76,6 +75,7 @@ export interface PostResponseDto {
isEdited: boolean;
visibility: string;
hashtags: string[]?;
+ isLiked: boolean?;
}
export interface UserResponseDto {