mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +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) {
|
||||
let { value } = e.target;
|
||||
if (value === '') {
|
||||
if (value !== 0 && !value) {
|
||||
value = frappe.pesa(0).round();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user