Skip to content

Commit

Permalink
[#603] fix hlint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jankun4 committed Apr 4, 2024
1 parent 7932316 commit 35fd4ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions govtool/backend/src/VVA/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ listProposals selectedTypes sortMode mPage mPageSize mDrepRaw mSearchQuery = do
about <- Text.toLower <$> proposalResponseAbout
motivation <- Text.toLower <$> proposalResponseMotivation
rationale <- Text.toLower <$> proposalResponseRationale

let govActionId = unHexText proposalResponseTxHash <> "#" <> Text.pack (show proposalResponseIndex)
let result = searchQuery `isInfixOf` title
|| searchQuery `isInfixOf` about
|| searchQuery `isInfixOf` motivation
|| searchQuery `isInfixOf` rationale
|| searchQuery `isInfixOf` ((unHexText proposalResponseTxHash) <> "#" <> (Text.pack $ show proposalResponseIndex))
|| searchQuery `isInfixOf` govActionId

pure result

Expand Down

0 comments on commit 35fd4ec

Please sign in to comment.