Skip to content

Commit

Permalink
fix: null error in chart counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jone-Torgersen committed Jan 28, 2025
1 parent 430d2c3 commit 565cae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/components/charts/ChartCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ChartCounter = ({ numberOfRespondents }: ChartCounterProps) => {
return (
<div className="flex items-center space-x-1 text-white">
<div>Antall svar:</div>
<div className="font-bold">{numberOfRespondents.toString()}</div>
<div className="font-bold">{numberOfRespondents}</div>
<div className="font-bold">({percentage}%)</div>
</div>
);
Expand Down

0 comments on commit 565cae2

Please sign in to comment.