From 9aa78a02a5d4f68daa062e4892875cf5f568306c 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 7a126e63..689281a2 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 (