mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
fix: no cargaba htags en unauth
mismo error que el de .accessToken
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user