Skip to content

Commit

Permalink
Missing block else
Browse files Browse the repository at this point in the history
  • Loading branch information
benitolopez committed Aug 3, 2022
1 parent 0d6cb17 commit ce912dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/js/hotel-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1342,10 +1342,11 @@ HotelDatepicker.prototype.topBarDefaultText = function topBarDefaultText () {
var topBarText = '';

if (this.minDays && this.maxDays) {
if (this.minDays == this.maxDays) {
if (this.minDays === this.maxDays) {
topBarText = this.lang('info-range-equal');
} else {
topBarText = this.lang('info-range');
}
topBarText = this.lang('info-range');
} else if (this.minDays && this.minDays > 2) {
topBarText = this.lang('info-more-plural');
} else if (this.minDays) {
Expand Down
Loading

0 comments on commit ce912dd

Please sign in to comment.