fix: no cargaba htags en unauth

mismo error que el de .accessToken
This commit is contained in:
2026-02-05 21:34:03 -03:00
parent 9546b6548d
commit 1da53348d0

View File

@@ -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) {