From 216983f48b66a820f7983d1ee311bd955358fcdb Mon Sep 17 00:00:00 2001 From: onezDerv Date: Wed, 18 Sep 2024 05:11:48 -0400 Subject: [PATCH] el stupido --- js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index 925d9fc..ae96a74 100644 --- a/js/app.js +++ b/js/app.js @@ -39,7 +39,7 @@ async function main(type) { user = user.slice(1); if (typed == '#') { - studios[typed] = await (fetch(`https://hf.zenoverse.net/studio/${user}`) + studios[user] = await (fetch(`https://hf.zenoverse.net/studio/${user}`) .then(x => x.json())); } } @@ -60,13 +60,13 @@ async function main(type) { extraFetch = await (fetch(`https://hf.zenoverse.net/studio_project/${user}`) .then(x => x.json())); extraFetch.forEach(x => { - x.studio = studios[typed].title; + x.studio = studios[user].title; }); } else if (typed == '#' && type == '#comment') { extraFetch = await (fetch(`https://hf.zenoverse.net/studio_comment/${user}`) .then(x => x.json())); extraFetch.forEach(x => { - x.studio = studios[typed].title; + x.studio = studios[user].title; x.studioID = user }); } else if (typed == '@' && type == '#user') {