{(pros.length > 0 || cons.length > 0) && (
@@ -271,17 +314,15 @@ export const CommunitySentimentBreakdown = ({
)}
- {sourcesWithComments.length > 0 && (
+ {sourceRows.length > 0 && (
By community
- {sourcesWithComments.map((item) => (
+ {sourceRows.map(({ item, discussion }) => (
))}