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)
|
||||
}
|
||||
|
||||
function handleMaxButtonsCountValueChange(value: number) {
|
||||
setMaxButtonsCount(value)
|
||||
function handleMaxButtonsCountValueChange(value?: string) {
|
||||
if (!value) return
|
||||
setMaxButtonsCount(parseInt(value))
|
||||
}
|
||||
|
||||
function handleMaxTurnsCountValueChange(value: number) {
|
||||
setMaxTurnsCount(value)
|
||||
function handleMaxTurnsCountValueChange(value?: string) {
|
||||
if (!value) return
|
||||
setMaxTurnsCount(parseInt(value))
|
||||
}
|
||||
|
||||
function handleNameQualityValueChange(value: boolean) {
|
||||
function handleNameQualityValueChange(value?: boolean) {
|
||||
setNameQuality(value)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue