From 27890f32cc12a18df65a48669c972d11e69bbf81 Mon Sep 17 00:00:00 2001 From: Foysal Ahamed Date: Wed, 11 Sep 2024 17:37:12 +0200 Subject: [PATCH] :bug: Only use recognized values for appealed query param (#186) --- app/reports/page-content.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/reports/page-content.tsx b/app/reports/page-content.tsx index 38dce881..02475576 100644 --- a/app/reports/page-content.tsx +++ b/app/reports/page-content.tsx @@ -330,10 +330,10 @@ function useModerationQueueQuery() { queryParams.onlyMuted = onlyMuted } - if (appealed) { - // If not specifically set to true but there is a value, we can default to false - // No value will pass undefined which will be ignored - queryParams.appealed = appealed === 'true' + if (appealed === 'true') { + queryParams.appealed = true + } else if (appealed === 'false') { + queryParams.appealed = false } if (tags) {