From 0e2f017305fb6588bbe672122ebcf9a09b4e0040 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 11 Aug 2025 20:16:46 +0000 Subject: [PATCH] Update calendar to display the current month by default Correctly initialize the calendar component's date state to use the current date rather than a hardcoded future date. Replit-Commit-Author: Agent Replit-Commit-Session-Id: a8a78c07-e900-425c-a577-5b4c5894379d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/a8a78c07-e900-425c-a577-5b4c5894379d/bWyNcZX --- client/src/pages/Calendar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/Calendar.tsx b/client/src/pages/Calendar.tsx index 2f21fe3..5d7bb15 100644 --- a/client/src/pages/Calendar.tsx +++ b/client/src/pages/Calendar.tsx @@ -18,7 +18,7 @@ export default function Calendar() { const { user } = useAuthUnified(); const { selectedStoreId } = useStore(); const queryClient = useQueryClient(); - const [currentDate, setCurrentDate] = useState(new Date(2025, 6, 1)); // July 2025 + const [currentDate, setCurrentDate] = useState(new Date()); // Current date const [selectedDate, setSelectedDate] = useState(null); const [showQuickCreate, setShowQuickCreate] = useState(false); const [showOrderDetail, setShowOrderDetail] = useState(false);