fix: undefined color case

This commit is contained in:
Lukas Zenick
2024-02-17 12:04:41 -06:00
committed by doprz
parent 1269731b55
commit 9aa78a02a5

View File

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