Skip to content

Commit

Permalink
fix: applied review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Erta committed Dec 1, 2022
1 parent 02504ab commit 4743e74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/theme/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ function get<C extends Component>({
}) {
const config = theme.getValue('components', name);

if (!variant || !config) {
if (!config) {
return config;
}

if (!variant) {
if (state) {
return {
...config,
Expand Down

0 comments on commit 4743e74

Please sign in to comment.