mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 13:58:13 +01:00
this is definitely one of the commits ever
This commit is contained in:
parent
6d2a1b10a9
commit
35a02d40c7
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue