diff --git a/components/calendar/Header.tsx b/components/calendar/Header.tsx index ffc8ab7f6b..f82b875a7c 100644 --- a/components/calendar/Header.tsx +++ b/components/calendar/Header.tsx @@ -83,7 +83,8 @@ export default class Header extends React.Component { const currentYear = value.get('year'); if (rangeEnd.get('year') === currentYear) { end = rangeEnd.get('month') + 1; - } else if (rangeStart.get('year') === currentYear) { + } + if (rangeStart.get('year') === currentYear) { start = rangeStart.get('month'); } }