Skip to content

Commit

Permalink
Fix major severity service map ring colors (#66124) (#66143)
Browse files Browse the repository at this point in the history
Using `||` in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes #66081
  • Loading branch information
smith authored May 12, 2020
1 parent 87d7db3 commit 77d2fc0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const getSeverityColor = (nodeSeverity: string) => {
switch (nodeSeverity) {
case severity.warning:
return theme.euiColorVis0;
case severity.minor || severity.major:
case severity.minor:
case severity.major:
return theme.euiColorVis5;
case severity.critical:
return theme.euiColorVis9;
Expand Down

0 comments on commit 77d2fc0

Please sign in to comment.