Skip to content

Commit

Permalink
require limit to specified (nonzero) for shuffle all
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Sep 18, 2024
1 parent 4c49e40 commit b628b68
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const ShuffleAllModal = ({
max={500}
min={1}
value={limit}
onChange={(e) => setStore({ limit: e ? Number(e) : 0 })}
onChange={(e) => setStore({ limit: e ? Number(e) : 500 })}
/>
<Group grow>
<NumberInput
Expand Down Expand Up @@ -208,6 +208,7 @@ export const ShuffleAllModal = ({
<Divider />
<Group grow>
<Button
disabled={!limit}
leftIcon={<RiAddBoxFill size="1rem" />}
type="submit"
variant="default"
Expand All @@ -216,6 +217,7 @@ export const ShuffleAllModal = ({
Add
</Button>
<Button
disabled={!limit}
leftIcon={<RiAddCircleFill size="1rem" />}
type="submit"
variant="default"
Expand All @@ -225,6 +227,7 @@ export const ShuffleAllModal = ({
</Button>
</Group>
<Button
disabled={!limit}
leftIcon={<RiPlayFill size="1rem" />}
type="submit"
variant="filled"
Expand Down

0 comments on commit b628b68

Please sign in to comment.