Skip to content

Commit

Permalink
fix parsing quotable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed May 1, 2024
1 parent dd1ac7b commit 1f11bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mod/add-widget-quotable/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
} else {
const response = await fetch('https://api.quotable.io/quotes/random');
const data = await response.json();
return data.content;
return data[0].content;
}
} catch (error) {
console.error('Failed to get Quotable', error);
Expand Down

0 comments on commit 1f11bae

Please sign in to comment.