From 2c3e7934b81fa343bb9d8f7a196ed046bca74245 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sat, 16 May 2026 02:10:37 +0200 Subject: [PATCH] fix(frontend): getTopFriends schema returns UserSchema[] not string[] --- thoughts-frontend/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thoughts-frontend/lib/api.ts b/thoughts-frontend/lib/api.ts index d88ff8f..1b8cc59 100644 --- a/thoughts-frontend/lib/api.ts +++ b/thoughts-frontend/lib/api.ts @@ -232,7 +232,7 @@ export const getTopFriends = (username: string, token: string | null) => apiFetch( `/users/${username}/top-friends`, { next: { tags: [`profile:${username}`] } }, - z.object({ topFriends: z.array(z.string()) }), + z.object({ topFriends: z.array(UserSchema) }), token );