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,