Skip to content

Commit

Permalink
fix: whoopsie on the condition for the reviewable line
Browse files Browse the repository at this point in the history
  • Loading branch information
omranjamal committed Aug 24, 2024
1 parent 0b8fd82 commit 51fe934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/jonogon-web-next/src/app/components/PetitionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ const PetitionList = () => {
: 'request';

const page = params.get('page') ? Number(params.get('page')) : 0;
const sort = params.get('sort') === 'latest' ? 'time' : 'votes';

const {data: petitionRequestListResponse, isLoading} =
trpc.petitions.list.useQuery(
{
filter: type,
page: page,
sort: params.get('sort') === 'latest' ? 'time' : 'votes',
sort: sort,
},
{
refetchInterval:
Expand Down Expand Up @@ -99,6 +100,7 @@ const PetitionList = () => {
}
/>
{type === 'request' &&
sort === 'votes' &&
page === 0 &&
i ===
(process.env.NODE_ENV === 'development'
Expand Down

0 comments on commit 51fe934

Please sign in to comment.