update goods
This commit is contained in:
@@ -70,7 +70,9 @@ export function useProductFilters() {
|
||||
}
|
||||
|
||||
const toCents = (v: string) => {
|
||||
const n = Number(String(v).trim().replace(',', '.'))
|
||||
const trimmed = String(v).trim()
|
||||
if (!trimmed) return undefined
|
||||
const n = Number(trimmed.replace(',', '.'))
|
||||
return Number.isFinite(n) && n >= 0 ? Math.round(n * 100) : undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user