1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 01:34:43 -05:00

this is definitely one of the commits ever

This commit is contained in:
Ashley 2023-03-09 19:42:40 +00:00
parent e613d8a742
commit d3206151e3

View file

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