File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react'
2
1
import { Input } from '@/components/ui/input'
3
2
import { Label } from '@/components/ui/label'
4
3
import { cn } from '@/lib/utils'
5
4
import { t } from 'i18next'
5
+ import { memo } from 'react'
6
6
7
7
interface FilterInputProps {
8
8
id : string
@@ -15,7 +15,7 @@ interface FilterInputProps {
15
15
hideNumberSpinner ?: boolean
16
16
}
17
17
18
- const FilterInput : React . FC < FilterInputProps > = React . memo (
18
+ const FilterInput : React . FC < FilterInputProps > = memo (
19
19
( {
20
20
id,
21
21
label,
@@ -48,7 +48,7 @@ const FilterInput: React.FC<FilterInputProps> = React.memo(
48
48
49
49
if ( id === 'seatingCount' && type === 'number' ) {
50
50
const numValue = parseInt ( newValue , 10 )
51
- if ( newValue && ( isNaN ( numValue ) || numValue < 1 || numValue > 999 ) ) {
51
+ if ( newValue && ( isNaN ( numValue ) || numValue < 0 || numValue > 999 ) ) {
52
52
return
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments