diff --git a/frontend/occupi-mobile4/components/BarGraph.tsx b/frontend/occupi-mobile4/components/BarGraph.tsx index 9dc5335d..63ee7cbc 100644 --- a/frontend/occupi-mobile4/components/BarGraph.tsx +++ b/frontend/occupi-mobile4/components/BarGraph.tsx @@ -11,7 +11,7 @@ import { convertValues, convertValuesHour } from '@/utils/occupancy'; const BarGraph = ({data,tab}) => { - console.log('tab',data) + console.log('hah',data) const colorscheme = useColorScheme(); const { theme } = useTheme(); const currentTheme = theme === "system" ? colorscheme : theme; diff --git a/frontend/occupi-mobile4/screens/Dashboard/Dashboard.tsx b/frontend/occupi-mobile4/screens/Dashboard/Dashboard.tsx index 4da712f6..367e612e 100644 --- a/frontend/occupi-mobile4/screens/Dashboard/Dashboard.tsx +++ b/frontend/occupi-mobile4/screens/Dashboard/Dashboard.tsx @@ -59,7 +59,7 @@ const Dashboard: React.FC = () => { const toast = useToast(); const [currentData, setCurrentData] = useState(); const pagerRef = useRef(null); - const [activeTab, setActiveTab] = useState(1); + const [activeTab, setActiveTab] = useState(2); const [weeklyData, setWeeklyData] = useState(); const [hourlyData, setHourlyData] = useState(); const counter = useCentrifugeCounter(); @@ -193,7 +193,7 @@ const Dashboard: React.FC = () => { try { const prediction = await getFormattedPredictionData(); if (prediction) { - // console.log(prediction); + console.log('hhahah',prediction); setCurrentData(prediction); setWeeklyData(prediction); } @@ -224,7 +224,7 @@ const Dashboard: React.FC = () => { }, []); const getPredictionsFromWeek = async (date: string) => { - console.log(activeTab); + // console.log(activeTab); try { if (activeTab === 2) { const prediction = await getFormattedPredictionWeekData(date); @@ -404,7 +404,7 @@ const Dashboard: React.FC = () => { const handleConfirm = (date: Date) => { const selectedDate: string = date.toString(); - console.log('selected', extractDateFromTimestamp(selectedDate)); + // console.log('selected', extractDateFromTimestamp(selectedDate)); setDate(extractDateFromTimestamp(selectedDate)); getPredictionsFromWeek(extractDateFromTimestamp(selectedDate)); hideDatePicker(); diff --git a/frontend/occupi-mobile4/utils/occupancy.ts b/frontend/occupi-mobile4/utils/occupancy.ts index 9d986a0c..a3c8105f 100644 --- a/frontend/occupi-mobile4/utils/occupancy.ts +++ b/frontend/occupi-mobile4/utils/occupancy.ts @@ -288,7 +288,7 @@ export async function mapToClassForSpecificHours(date? : string) { } } const prediction = await fetchHourlyPredictions(); - console.log(prediction); + // console.log(prediction); if (prediction) { return prediction.Hourly_Predictions .filter(item => specificHours.includes(item.Hour)) // Filter specific hours