diff --git a/frappe/public/js/frappe/chat.js b/frappe/public/js/frappe/chat.js index 177bd5913e..2502f9201c 100644 --- a/frappe/public/js/frappe/chat.js +++ b/frappe/public/js/frappe/chat.js @@ -93,10 +93,10 @@ frappe.datetime.datetime = class { * @description Frappe's datetime Class's constructor. */ constructor (instance, format = null) { - if ( typeof moment === undefined ) + if ( typeof moment === 'undefined' ) throw new frappe.ImportError(`Moment.js not installed.`) - this.moment = instance ? moment(instance, format) : moment() + this.moment = instance ? moment(instance, format) : moment() } /**