Skip to content

Commit

Permalink
[ML] fix displayScore
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Apr 30, 2020
1 parent ce66cd2 commit b1bdde5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class ExplorerSwimlane extends React.Component<ExplorerSwimlaneProps> {
return;
}

const displayScore = bucketScore > 1 ? bucketScore : '< 1';
const displayScore = bucketScore > 1 ? parseInt(String(bucketScore), 10) : '< 1';

// Display date using same format as Kibana visualizations.
const formattedDate = formatHumanReadableDateTime(time * 1000);
Expand Down

0 comments on commit b1bdde5

Please sign in to comment.