Fix type error
This commit is contained in:
parent
835cdfff6f
commit
875635f2d9
1 changed files with 7 additions and 5 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue