1
Fork 0

this is definitely one of the commits ever

This commit is contained in:
Ashley 2023-03-09 19:42:40 +00:00
parent 6d2a1b10a9
commit 35a02d40c7

View file

@ -46,7 +46,7 @@ const getEngagementData = async (videoId) => {
try { try {
const engagement = await fetch(apiUrl).then((res) => res.json()); const engagement = await fetch(apiUrl).then((res) => res.json());
return engagement; return engagement.data;
} catch { } catch {
try { try {
const engagement = await fetch(fallbackUrl).then((res) => res.json()); const engagement = await fetch(fallbackUrl).then((res) => res.json());