From 6e7b4e0522e0c8a17276124c93c237ffb39be916 Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Tue, 13 Jan 2026 01:02:25 -0500 Subject: [PATCH] fix: rewind ui bug --- client/app/routes/RewindPage.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/app/routes/RewindPage.tsx b/client/app/routes/RewindPage.tsx index 1c1727e..8417212 100644 --- a/client/app/routes/RewindPage.tsx +++ b/client/app/routes/RewindPage.tsx @@ -46,8 +46,10 @@ export async function clientLoader({ request }: LoaderFunctionArgs) { export default function RewindPage() { const currentParams = new URLSearchParams(location.search); - let year = parseInt(currentParams.get("year") || "0"); - let month = parseInt(currentParams.get("month") || "0"); + let year = + parseInt(currentParams.get("year") || "0") || getRewindParams().year; + let month = + parseInt(currentParams.get("month") || "0") || getRewindParams().month; const navigate = useNavigate(); const [showTime, setShowTime] = useState(false); const { stats: stats } = useLoaderData<{ stats: RewindStats }>();