I am practicing with vue, how can I optimize this conditional code.
The idea is that the number type input does not accept 01,02…
That is, when they enter 01, type 1. This up to the number 09, but at the same time accept 0.1 0.2 0.3…
let checkQty = ""
saleQty.value === '01' ? checkQty = 1 : checkQty = saleQty.value
saleQty.value === '02' ? checkQty = 2 : checkQty = saleQty.value
saleQty.value === '03' ? checkQty = 3 : checkQty = saleQty.value
saleQty.value === '04' ? checkQty = 4 : checkQty = saleQty.value
saleQty.value === '05' ? checkQty = 5 : checkQty = saleQty.value
saleQty.value === '06' ? checkQty = 6 : checkQty = saleQty.value
saleQty.value === '07' ? checkQty = 7 : checkQty = saleQty.value
saleQty.value === '08' ? checkQty = 8 : checkQty = saleQty.value
saleQty.value === '09' ? checkQty = 9 : checkQty = saleQty.value