From b38dde264c41e9d6a72681bbbc9ac86a19cf28f2 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 4 Jan 2022 12:20:10 +0530 Subject: [PATCH] fix: avoid null issue check for nonzero falsy --- src/components/Controls/Currency.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Controls/Currency.vue b/src/components/Controls/Currency.vue index 67e68dfc8..22b744822 100644 --- a/src/components/Controls/Currency.vue +++ b/src/components/Controls/Currency.vue @@ -50,7 +50,7 @@ export default { }, onBlur(e) { let { value } = e.target; - if (value === '') { + if (value !== 0 && !value) { value = frappe.pesa(0).round(); }