fix(ui) - listing visibility negative values

This commit is contained in:
Shekar Siri 2023-01-30 12:16:18 +01:00 committed by Taha Yassine Kraiem
parent 0b583b91df
commit 25522f63ca

View file

@ -49,9 +49,11 @@ function ListingVisibility() {
value={durationSettings.count}
type="number"
name="count"
min={0}
placeholder="E.g 10"
onChange={({ target: { value } }: any) => {
changeSettings({ count: value })
console.log('value', value)
changeSettings({ count: value > 0 ? value : '' })
}}
/>
</div>