From f07cb350d4febad61b1991ad5b808021001c9735 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sun, 15 Feb 2026 23:59:57 -0500 Subject: [PATCH] fix: parse filter ID as number in MyChores component --- src/views/Chores/MyChores.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Chores/MyChores.jsx b/src/views/Chores/MyChores.jsx index 2af0457..6db1256 100644 --- a/src/views/Chores/MyChores.jsx +++ b/src/views/Chores/MyChores.jsx @@ -371,8 +371,10 @@ const MyChores = () => { if (!chores.length || !savedFilters.length) return // Check for filterId (camelCase) or filter_id (snake_case) for advanced filters - const filterId = + const rawFilterId = searchParams.get('filterId') || searchParams.get('filter_id') + // Parse as number since filter IDs from the API are numeric + const filterId = rawFilterId ? Number(rawFilterId) || rawFilterId : null const oldFilter = searchParams.get('filter')