Skip to content

Commit

Permalink
🐛 Only use recognized values for appealed query param (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Sep 11, 2024
1 parent b5db7ae commit 27890f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/reports/page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 27890f3

Please sign in to comment.