fix undefined color case

This commit is contained in:
Lukas Zenick
2024-02-17 12:04:41 -06:00
parent 0f14b8ce1b
commit 27fdd9c559

View File

@@ -33,7 +33,7 @@ export function Button({
const Icon = icon;
const isIconOnly = !children && !!icon;
const colorHex = getThemeColorHexByName(color);
const colorRgb = getThemeColorRgbByName(color).join(' ');
const colorRgb = getThemeColorRgbByName(color)?.join(' ');
return (
<button