From 06e99dfe7b1619aaced3157cc24785a0b845d5b5 Mon Sep 17 00:00:00 2001 From: David Angulo Date: Tue, 9 Mar 2021 13:23:48 -0600 Subject: [PATCH] fix sider --- erpnext/healthcare/doctype/patient/patient.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/healthcare/doctype/patient/patient.js b/erpnext/healthcare/doctype/patient/patient.js index 49478cc360..ff237d3824 100644 --- a/erpnext/healthcare/doctype/patient/patient.js +++ b/erpnext/healthcare/doctype/patient/patient.js @@ -46,11 +46,10 @@ frappe.ui.form.on('Patient', { } }, onload: function (frm) { - if(!frm.doc.dob){ + if(!frm.doc.dob) { $(frm.fields_dict['age_html'].wrapper).html(''); } - - if(frm.doc.dob){ + if(frm.doc.dob) { $(frm.fields_dict['age_html'].wrapper).html(`${__('AGE')} : ${get_age(frm.doc.dob)}`); } }