Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dreaming-augustin committed Dec 26, 2024
1 parent d509478 commit 14912c7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/definitions/modules/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1145,9 +1145,16 @@
},
dateObjectOrFormatted: function (format, date) {
format = format || '';
var date = module.helper.sanitiseDate($module.data(metadata.date)) || null;
if (!date) return null;
if (format === '') return date;
date = module.helper.sanitiseDate($module.data(metadata.date)) || null;

if (!date) {
return null;
}

if (format === '') {
return date;
}

return module.helper.dateFormat(format, date);
},
isDisabled: function (date, mode) {
Expand Down

0 comments on commit 14912c7

Please sign in to comment.