Fix type error

This commit is contained in:
Justin Edmund 2023-06-18 01:33:40 -07:00
parent 835cdfff6f
commit 875635f2d9

View file

@ -199,15 +199,17 @@ const FilterModal = (props: Props) => {
setMinWeaponCount(value) setMinWeaponCount(value)
} }
function handleMaxButtonsCountValueChange(value: number) { function handleMaxButtonsCountValueChange(value?: string) {
setMaxButtonsCount(value) if (!value) return
setMaxButtonsCount(parseInt(value))
} }
function handleMaxTurnsCountValueChange(value: number) { function handleMaxTurnsCountValueChange(value?: string) {
setMaxTurnsCount(value) if (!value) return
setMaxTurnsCount(parseInt(value))
} }
function handleNameQualityValueChange(value: boolean) { function handleNameQualityValueChange(value?: boolean) {
setNameQuality(value) setNameQuality(value)
} }