Fix conditional return in BsmButton component

This commit is contained in:
shidorien
2023-12-28 15:32:50 +01:00
parent 98bdbba23c
commit 99a9f5b1de
@@ -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 = (() => {