From 27fdd9c5595331e737af58ec2d5337b4679264fe Mon Sep 17 00:00:00 2001 From: Lukas Zenick Date: Sat, 17 Feb 2024 12:04:41 -0600 Subject: [PATCH] fix undefined color case --- src/views/components/common/Button/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components/common/Button/Button.tsx b/src/views/components/common/Button/Button.tsx index d2be0bd3..39e71d13 100644 --- a/src/views/components/common/Button/Button.tsx +++ b/src/views/components/common/Button/Button.tsx @@ -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 (