Skip to content

Commit

Permalink
simplify ping color condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptrhnk committed Nov 3, 2023
1 parent 10f9860 commit ee8ecbb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ export const LeftHeader: React.FC<LeftHeader> = React.memo(
color="white"
/>
)}
{ping === -2 && <StyledPingColor pingColor={pingColor} />}
{ping >= -1 && <StyledPingColor pingColor={pingColor} />}
{ping >= -2 && <StyledPingColor pingColor={pingColor} />}
{ping >= 0 && <StyledPingText>{ping}ms</StyledPingText>}
</StyledFlexRow>
</StyledFlexColumn>
Expand Down

0 comments on commit ee8ecbb

Please sign in to comment.