Skip to content

Commit

Permalink
fix: avoid null issue check for nonzero falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Jan 4, 2022
1 parent b7a206a commit b38dde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Controls/Currency.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
},
onBlur(e) {
let { value } = e.target;
if (value === '') {
if (value !== 0 && !value) {
value = frappe.pesa(0).round();
}
Expand Down

0 comments on commit b38dde2

Please sign in to comment.