diff --git a/apps/portal/src/pages/questions/browse.tsx b/apps/portal/src/pages/questions/browse.tsx index 7c876339..2b527c85 100644 --- a/apps/portal/src/pages/questions/browse.tsx +++ b/apps/portal/src/pages/questions/browse.tsx @@ -178,7 +178,7 @@ export default function QuestionsBrowsePage() { return undefined; } return questionsQueryData.pages.reduce( - (acc, page) => acc + page.data.length, + (acc, page) => acc + (page.data.length as number), 0, ); }, [questionsQueryData]); @@ -444,20 +444,20 @@ export default function QuestionsBrowsePage() {
-
-
- { - createQuestion({ - companyId: data.company, - content: data.questionContent, - location: data.location, - questionType: data.questionType, - role: data.role, - seenAt: data.date, - }); - }} - /> +
+ { + createQuestion({ + companyId: data.company, + content: data.questionContent, + location: data.location, + questionType: data.questionType, + role: data.role, + seenAt: data.date, + }); + }} + /> +
-
- {(questionsQueryData?.pages ?? []).flatMap( - ({ data: questions }) => - questions.map((question) => { - const { companyCounts, locationCounts, roleCounts } = - relabelQuestionAggregates( - question.aggregatedQuestionEncounters, - ); - - return ( - +
+
+ {(questionsQueryData?.pages ?? []).flatMap( + ({ data: questions }) => + questions.map((question) => { + const { companyCounts, locationCounts, roleCounts } = + relabelQuestionAggregates( + question.aggregatedQuestionEncounters, ); - }), - )} -
+ + return ( + + ); + }), + )} +