Commit bacc9667 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: allow 0 after decimal (#5487)

allow 0 after decimal
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent 41776655
......@@ -184,7 +184,7 @@ const PriceTextInput = ({
}}
ref={inputRef}
onChange={(v: FormEvent<HTMLInputElement>) => {
if (!listPrice && v.currentTarget.value === '0.') {
if (!listPrice && v.currentTarget.value.includes('.') && parseFloat(v.currentTarget.value) === 0) {
return
}
const val = parseFloat(v.currentTarget.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment