File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -148,29 +148,27 @@ export function Evals({
148148 </ TableCell >
149149 < TableCell className = "border-r" > { formatCurrency ( run . taskMetrics . cost ) } </ TableCell >
150150 < TableCell className = "text-muted-foreground" >
151- { run . languageScores ?. go !== undefined
152- ? `${ formatScore ( run . languageScores . go ) } %`
153- : formatScore ( undefined ) }
151+ { run . languageScores ?. go !== undefined ? `${ formatScore ( run . languageScores . go ) } %` : "-" }
154152 </ TableCell >
155153 < TableCell className = "text-muted-foreground" >
156154 { run . languageScores ?. java !== undefined
157155 ? `${ formatScore ( run . languageScores . java ) } %`
158- : formatScore ( undefined ) }
156+ : "-" }
159157 </ TableCell >
160158 < TableCell className = "text-muted-foreground" >
161159 { run . languageScores ?. javascript !== undefined
162160 ? `${ formatScore ( run . languageScores . javascript ) } %`
163- : formatScore ( undefined ) }
161+ : "-" }
164162 </ TableCell >
165163 < TableCell className = "text-muted-foreground" >
166164 { run . languageScores ?. python !== undefined
167165 ? `${ formatScore ( run . languageScores . python ) } %`
168- : formatScore ( undefined ) }
166+ : "-" }
169167 </ TableCell >
170168 < TableCell className = "text-muted-foreground" >
171169 { run . languageScores ?. rust !== undefined
172170 ? `${ formatScore ( run . languageScores . rust ) } %`
173- : formatScore ( undefined ) }
171+ : "-" }
174172 </ TableCell >
175173 < TableCell className = "font-bold" > { run . score } %</ TableCell >
176174 </ TableRow >
Original file line number Diff line number Diff line change 1- export const formatScore = ( score : number | null | undefined ) => {
2- if ( score === null || score === undefined ) {
3- return "-"
4- }
5- return Math . round ( score * 100 )
6- }
1+ export const formatScore = ( score : number ) => Math . round ( score * 100 )
You can’t perform that action at this time.
0 commit comments