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:
parent
4d85642a40
commit
3d7aa6ba26
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user