Skip to content

Commit

Permalink
fix(kit): delete useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
zhd-dm committed Aug 19, 2024
1 parent facfcc6 commit 369e0af
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,15 @@ export class TuiCalendarRangeComponent

private get activePeriod(): TuiDayRangePeriod | null {
return (
this.item ??
(this.items.find(item =>
this.items.find(item =>
tuiNullableSame<TuiDayRange>(
this.value,
item.range,
(a, b) =>
a.from.daySame(b.from.dayLimit(this.min, this.max)) &&
a.to.daySame(b.to.dayLimit(this.min, this.max)),
),
) ||
null)
) || null
);
}

Expand Down

0 comments on commit 369e0af

Please sign in to comment.