From 88c27c3e1ca9b0b13b9e4d283388ac3700ac9825 Mon Sep 17 00:00:00 2001 From: Mahdi Bagheri Date: Sat, 13 Apr 2024 17:08:41 +0330 Subject: [PATCH] bug fix leap year --- src/mixin/Comparison.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixin/Comparison.js b/src/mixin/Comparison.js index 5c134fb..6a11a4c 100644 --- a/src/mixin/Comparison.js +++ b/src/mixin/Comparison.js @@ -100,7 +100,7 @@ const Comparison = { }, isLeapYear () { - return this._currentCalendar.isLeap(this._currentCalendar.getYear()); + return this._currentCalendar.isLeap(this.getYear()); }, isSameDay (other) { @@ -108,4 +108,4 @@ const Comparison = { } }; -export default Comparison; \ No newline at end of file +export default Comparison;