Skip to content

Commit

Permalink
chore: validation
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Dec 17, 2023
1 parent 25d9611 commit b063daf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions canvas/src/blocks/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const Settings = <
value={value?.toString()}
onChange={(e) => {
const n = parseInt(e.target.value)
if (isNaN(n)) return
if (n < min) return
if (n > max) return

Expand Down

0 comments on commit b063daf

Please sign in to comment.