Skip to content

Commit

Permalink
Tighten check for detecting if Moment is installed (#6113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrimmer authored and simonbrunel committed Mar 6, 2019
1 parent f9f048a commit d3b7559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/adapter.moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var FORMATS = {
year: 'YYYY'
};

adapters._date.override(moment ? {
adapters._date.override(typeof moment === 'function' ? {
_id: 'moment', // DEBUG ONLY

formats: function() {
Expand Down

0 comments on commit d3b7559

Please sign in to comment.