From ca2f315024b89d68c2511dfb160f7da945f266c5 Mon Sep 17 00:00:00 2001 From: Daniil Gaponov Date: Tue, 23 Apr 2024 11:25:16 +0300 Subject: [PATCH] feat: increase max options for card --- src/lib/kit/hooks/useOneOf/useOneOf.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/kit/hooks/useOneOf/useOneOf.tsx b/src/lib/kit/hooks/useOneOf/useOneOf.tsx index 22c2933f..0c3ee768 100644 --- a/src/lib/kit/hooks/useOneOf/useOneOf.tsx +++ b/src/lib/kit/hooks/useOneOf/useOneOf.tsx @@ -100,7 +100,7 @@ export const useOneOf = ({props, onTogglerChange}: UseOneOfParams) => { ); const togglerType = React.useMemo(() => { - if (spec.viewSpec.oneOfParams?.toggler === 'card' && options.length < 3) { + if (spec.viewSpec.oneOfParams?.toggler === 'card' && options.length < 4) { return 'card'; }