Skip to content

Commit

Permalink
fix: fix code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshuicmq committed Sep 11, 2023
1 parent 212c5a1 commit 0f4e8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date-picker/lib/popups/date-popup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export class DatePopupComponent implements OnChanges, OnInit {
const [start, end] = value;
const newStart = start || new TinyDate();
let newEnd = end;
if (!newEnd || (newEnd && newStart.isSame(newEnd, headerMode as TinyDateCompareGrain))) {
if (!newEnd || newStart.isSame(end, headerMode as TinyDateCompareGrain)) {
newEnd = dateAddAmount(newStart, 1, headerMode);
}
return [newStart, newEnd];
Expand Down

0 comments on commit 0f4e8c5

Please sign in to comment.