diff --git a/android/app/src/main/java/org/fuzue/seasonfood/MainActivity.java b/android/app/src/main/java/org/fuzue/seasonfood/MainActivity.java new file mode 100644 index 0000000..0660a9d --- /dev/null +++ b/android/app/src/main/java/org/fuzue/seasonfood/MainActivity.java @@ -0,0 +1,5 @@ +package org.fuzue.seasonfood; + +import com.getcapacitor.BridgeActivity; + +public class MainActivity extends BridgeActivity {} diff --git a/src/routes/FoodPage.tsx b/src/routes/FoodPage.tsx index a0d53a4..5eb89cd 100644 --- a/src/routes/FoodPage.tsx +++ b/src/routes/FoodPage.tsx @@ -31,7 +31,7 @@ export default function FoodPage() { if (selectedFood && selectedFood.season[i] === true) { seasonMonths.push(months[i]); seasonStatus = "FoodPage_notInSeasonText"; - if (seasonMonths.includes(months[currentMonth])) { + if (seasonMonths.includes(months[currentMonth - 1])) { seasonStatus = "FoodPage_inSeasonText"; } }