Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhilS2 committed Jun 3, 2024
1 parent 624b470 commit 89b3ed7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/foods/[food]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ export default function Page({ params }: { params: { food: string } }) {
))}
</main>
);
}
}
12 changes: 6 additions & 6 deletions app/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Page = () => {
]);
const [reviews, setReviews] = useState<FrontEndReviews>({});
const [notificationsEnabled, setNotificationsEnabled] = useState(
cookies.notificationsEnabled === "true"
cookies.notificationsEnabled === "true",
);
const [foodNames, setFoodNames] = useState<string[]>([]);
const [loading, setLoading] = useState(true);
Expand Down Expand Up @@ -65,9 +65,9 @@ const Page = () => {
const allFoodNames = locations.flatMap((location) =>
location.categories.flatMap((category) =>
category.sub_categories.flatMap((sub_category) =>
sub_category.foods.map((food) => food.name)
)
)
sub_category.foods.map((food) => food.name),
),
),
);
setFoodNames(allFoodNames);
console.log("Food Names:", allFoodNames);
Expand Down Expand Up @@ -101,8 +101,8 @@ const Page = () => {
});
const filteredReviews = Object.fromEntries(
Object.entries(reviews).filter(
([_, review]) => review.user_rating != null
)
([_, review]) => review.user_rating != null,
),
);
setReviews(filteredReviews);
setLoading(false);
Expand Down
2 changes: 1 addition & 1 deletion app/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const fetchUserInfo = async () => {
"https://www.googleapis.com/oauth2/v3/userinfo",
{
headers: { Authorization: `Bearer ${access_token}` },
}
},
);

const userInfo = response.data;
Expand Down
2 changes: 1 addition & 1 deletion components/location/categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function LocationCategories({
new Array(location.categories.length).fill(false).map((_, index) => {
switch (index) {
case 0: // Breakfast (6 AM - 11 AM)
return currentHour < 11 && currentHour >= 6;
return currentHour < 11 && currentHour >= 6;
case 1: // Lunch (11 AM - 3 PM)
return currentHour < 15 && currentHour >= 11;
case 2: // Dinner (6 PM - 9 PM)
Expand Down

0 comments on commit 89b3ed7

Please sign in to comment.