fix: no cargaba htags en unauth
mismo error que el de .accessToken
This commit is contained in:
1 parent
9546b6548d
commit
1da53348d0
1 file changed
+1
-1
@@ -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