Skip to content

Commit

Permalink
feat: increase max options for card
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaponov committed Apr 23, 2024
1 parent 0decdf1 commit ca2f315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/kit/hooks/useOneOf/useOneOf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit ca2f315

Please sign in to comment.