Skip to content

Commit

Permalink
Fix numeric browse filter
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Mar 12, 2024
1 parent 1e49f51 commit 9140e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/shared/src/supabase/search-contracts.ts
Expand Up @@ -228,6 +228,8 @@ function getSearchContractWhereSQL(args: {
? ''
: contractType === 'MULTIPLE_CHOICE'
? `outcome_type = 'FREE_RESPONSE' OR outcome_type = 'MULTIPLE_CHOICE'`
: contractType === 'PSEUDO_NUMERIC'
? `outcome_type = 'PSEUDO_NUMERIC' OR outcome_type = 'NUMBER'`
: `outcome_type = '${contractType}'`

const stonkFilter =
Expand Down

0 comments on commit 9140e4a

Please sign in to comment.