From 1da53348d05a285e89ffb792f6ce09e82a765178 Mon Sep 17 00:00:00 2001 From: fede Date: Thu, 5 Feb 2026 21:34:03 -0300 Subject: [PATCH] fix: no cargaba htags en unauth mismo error que el de .accessToken --- src/lib/hooks/obtenerCantidadDeUsosdeHtag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/hooks/obtenerCantidadDeUsosdeHtag.ts b/src/lib/hooks/obtenerCantidadDeUsosdeHtag.ts index 9f7e2fb..ae7904c 100644 --- a/src/lib/hooks/obtenerCantidadDeUsosdeHtag.ts +++ b/src/lib/hooks/obtenerCantidadDeUsosdeHtag.ts @@ -9,7 +9,7 @@ export async function obtenerCantidadDeUsosdeHtag(htag: string, fetch2?: Functio const req = await fetchFn(`${get(apiBase)}/api/posts/hashtag/${htag}`, { method: 'GET', headers: { - Authorization: `Bearer ${get(sesionStore)?.accessToken}` + Authorization: `Bearer ${get(sesionStore)?.accessToken || ''}` } }); if (req.ok) {