Fix bug on vis metric regarding applying the light theme when thebg is dark (#67481)

This commit is contained in:
Stratoula Kalafateli 2020-05-29 10:14:29 +03:00 committed by GitHub
parent b9d1cec7fd
commit cc83cfa3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ export class MetricVisComponent extends Component<MetricVisComponentProps> {
return false;
}
const [red, green, blue] = colors.slice(1).map(parseInt);
const [red, green, blue] = colors.slice(1).map((c) => parseInt(c, 10));
return isColorDark(red, green, blue);
}