From 99a9f5b1de9ce7fa95397dad7e3d9c2d30561159 Mon Sep 17 00:00:00 2001 From: shidorien Date: Thu, 28 Dec 2023 15:32:50 +0100 Subject: [PATCH] Fix conditional return in BsmButton component --- src/renderer/components/shared/bsm-button.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/shared/bsm-button.component.tsx b/src/renderer/components/shared/bsm-button.component.tsx index 66d2fc1b..3b80202d 100644 --- a/src/renderer/components/shared/bsm-button.component.tsx +++ b/src/renderer/components/shared/bsm-button.component.tsx @@ -50,7 +50,7 @@ export function BsmButton({ className, style, imgClassName, iconClassName, icon, if (primaryColor) { return getCorrectTextColor(primaryColor); } - return typeColor ? "white" : undefined; + return typeColor && typeColor !== "none" ? "white" : undefined; })(); const renderTypeColor = (() => {