Skip to content

Commit

Permalink
Fix a bug when setting isnt set
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Oct 15, 2019
1 parent b43e320 commit 126c86a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/calendar/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ Calendar.prototype = {
* @returns {void}
*/
setLocale() {
Locale.getLocale(this.settings.language);
this.language = this.settings.language;
if (this.settings.language) {
Locale.getLocale(this.settings.language);
this.language = this.settings.language;
}

if (this.settings.locale && (!this.locale || this.locale.name !== this.settings.locale)) {
Locale.getLocale(this.settings.locale).done((locale) => {
Expand Down

0 comments on commit 126c86a

Please sign in to comment.