2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00

fix: avoid null issue check for nonzero falsy

This commit is contained in:
18alantom 2022-01-04 12:20:10 +05:30
parent 4d85642a40
commit 3d7aa6ba26

View File

@ -50,7 +50,7 @@ export default {
}, },
onBlur(e) { onBlur(e) {
let { value } = e.target; let { value } = e.target;
if (value === '') { if (value !== 0 && !value) {
value = frappe.pesa(0).round(); value = frappe.pesa(0).round();
} }