From 82d895cd6a90b8e30de5d70f1166913d79f82b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 1 Feb 2024 15:17:05 +0100 Subject: [PATCH] Hotfix: fn was passed wrong params --- app/lib/actions/locationActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/actions/locationActions.ts b/app/lib/actions/locationActions.ts index b8d7a14..3db4f29 100644 --- a/app/lib/actions/locationActions.ts +++ b/app/lib/actions/locationActions.ts @@ -81,7 +81,7 @@ export const updateOrAddLocation = withUser(async (user:AuthenticatedUser, locat }); } - await gotoHome(yearMonth ? `/?year=${yearMonth?.year}` : undefined) + if(yearMonth) await gotoHome(yearMonth); return { message: null,