diff --git a/packages/roomkit-react/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx b/packages/roomkit-react/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx index 67fdb55e0e..d6f95db221 100644 --- a/packages/roomkit-react/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx @@ -31,8 +31,7 @@ export const PeerParticipationSummary = ({ quiz }: { quiz: HMSPoll }) => { { title: 'Avg. Time Taken', value: summary.avgTime }, { title: 'Avg. Score', - value: - summary.avgScore === parseInt(summary.avgScore.toString()) ? summary.avgScore : summary.avgScore.toFixed(2), + value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2), }, ] : [