From 2efcbc72cc8d867dbc35e0a19bdc86ca96b646ba Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 29 Apr 2022 02:27:41 +0100 Subject: [PATCH] fix: always use an opacity of 0.2 --- client/src/components/tables/cells/USCDifficultyCell.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/tables/cells/USCDifficultyCell.tsx b/client/src/components/tables/cells/USCDifficultyCell.tsx index aece4823e..ade157c4c 100644 --- a/client/src/components/tables/cells/USCDifficultyCell.tsx +++ b/client/src/components/tables/cells/USCDifficultyCell.tsx @@ -17,9 +17,10 @@ export default function USCDifficultyCell({ const gptConfig = GetGamePTConfig("usc", chart.playtype); - const bgColour = chart.data.isOfficial - ? ChangeOpacity(gptConfig.difficultyColours[chart.difficulty]!, 0.2) - : COLOUR_SET.red; + const bgColour = ChangeOpacity( + chart.data.isOfficial ? gptConfig.difficultyColours[chart.difficulty]! : COLOUR_SET.red, + 0.2 + ); return (