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