mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-06 18:33:12 +00:00
style: format code with Prettier
This commit fixes the style issues introduced in 6e31b44
according to the output
from Prettier.
Details: None
This commit is contained in:
parent
6e31b44137
commit
cd6fdf3b29
19 changed files with 131 additions and 105 deletions
|
@ -1,13 +1,13 @@
|
|||
import TestData from '%/lib/test-data.ts';
|
||||
import TestData from "%/lib/test-data.ts";
|
||||
|
||||
export async function getPopularToday() {
|
||||
const res = await fetch("/api/items")
|
||||
const data = res.json()
|
||||
const res = await fetch("/api/items");
|
||||
const data = res.json();
|
||||
|
||||
if (res.ok) {
|
||||
return data
|
||||
return data;
|
||||
} else {
|
||||
throw new Error("Failed to fetch popular today")
|
||||
throw new Error("Failed to fetch popular today");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue