fix(ui) - listing visibility negative values

This commit is contained in:
Shekar Siri 2023-01-30 12:16:18 +01:00
parent d15961ace8
commit f08ee75fa7

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>