Skip to content

Commit

Permalink
bug fix leap year
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpcoder authored Apr 13, 2024
1 parent bd6478a commit 88c27c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mixin/Comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ const Comparison = {
},

isLeapYear () {
return this._currentCalendar.isLeap(this._currentCalendar.getYear());
return this._currentCalendar.isLeap(this.getYear());
},

isSameDay (other) {
return this.gregorian().diffInDays(other) === 0;
}
};

export default Comparison;
export default Comparison;

0 comments on commit 88c27c3

Please sign in to comment.