From 4743e743fbd8005191bc3fc6ca5ae7618cd013d6 Mon Sep 17 00:00:00 2001 From: Mauro Erta Date: Thu, 1 Dec 2022 17:36:15 +0100 Subject: [PATCH] fix: applied review suggestion --- packages/core/src/theme/components.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/src/theme/components.ts b/packages/core/src/theme/components.ts index c4b3a179..4ba8a406 100644 --- a/packages/core/src/theme/components.ts +++ b/packages/core/src/theme/components.ts @@ -31,7 +31,11 @@ function get({ }) { const config = theme.getValue('components', name); - if (!variant || !config) { + if (!config) { + return config; + } + + if (!variant) { if (state) { return { ...config,