chore(client): fix typecheck

This commit is contained in:
Elian Doran
2025-10-19 11:38:34 +03:00
parent 1aad2d8c09
commit e04bd36dfe

View File

@@ -16,14 +16,10 @@ const darkThemeColorMinLightness = readCssVar(
).asNumber(50);
function createClassForColor(colorString: string | null) {
if (!colorString?.trim()) {
return "";
}
if (!colorString?.trim()) return "";
const color = parseColor(colorString);
if (!color) {
return;
}
if (!color) return "";
const className = `color-${color.hex().substring(1)}`;