Skip to content

Commit

Permalink
Merge pull request #363 from jfdnc/master
Browse files Browse the repository at this point in the history
`MomentOverride.defaultFormat` null if not defined in config
  • Loading branch information
alexlafroscia authored Sep 22, 2021
2 parents 32bb7ad + bbb4389 commit ab86976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import MomentService from 'ember-moment/services/moment';
import config from '../config/environment';

export default class MomentOverride extends MomentService {
defaultFormat = config.moment.outputFormat;
defaultFormat = (config.moment && config.moment.outputFormat) || null;
}

0 comments on commit ab86976

Please sign in to comment.