1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00

feat: feedback score N/A (#10114)

This commit is contained in:
Mateusz Kwasniewski 2025-06-11 12:15:40 +02:00 committed by GitHub
parent d2233bc71d
commit 4e283dc579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,10 @@ export const FeedbackList = () => {
<Box>{experiment.commentCount} comments</Box>
</Box>
<AverageScore>
{experiment.averageScore}/7
{/* biome-ignore lint/suspicious/noGlobalIsNan: using isNaN to check if averageScore is not a number */}
{isNaN(Number(experiment.averageScore))
? 'N/A'
: `${experiment.averageScore}/7`}
</AverageScore>
</ActiveExperimentCard>
))