Skip to content

Commit

Permalink
Fix major severity service map ring colors (#66124)
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 committed May 11, 2020
1 parent 480c152 commit 0802ccc
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 0802ccc

Please sign in to comment.