Skip to content

Commit

Permalink
Fix undefined report.voters
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAsJade committed Sep 27, 2023
1 parent a01d556 commit a8f7fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ReportsCenter/ViewReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J
{report.voters.length > 0 && (
<>
<h4>{_("Voters:")}</h4>
{report.voters.map((vote) => (
{report.voters?.map((vote) => (
<li key={vote.voter_id}>
<Player user={vote.voter_id} />: {vote.action}
</li>
Expand Down

0 comments on commit a8f7fd7

Please sign in to comment.