From 369e0af6666373785e0c5d7b2cf9c74b81a82755 Mon Sep 17 00:00:00 2001 From: Demyan Date: Mon, 19 Aug 2024 14:22:25 +0300 Subject: [PATCH] fix(kit): delete useless check --- .../components/calendar-range/calendar-range.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/kit/components/calendar-range/calendar-range.component.ts b/projects/kit/components/calendar-range/calendar-range.component.ts index 33b51aa910e4..6c729d8ccc53 100644 --- a/projects/kit/components/calendar-range/calendar-range.component.ts +++ b/projects/kit/components/calendar-range/calendar-range.component.ts @@ -256,8 +256,7 @@ export class TuiCalendarRangeComponent private get activePeriod(): TuiDayRangePeriod | null { return ( - this.item ?? - (this.items.find(item => + this.items.find(item => tuiNullableSame( this.value, item.range, @@ -265,8 +264,7 @@ export class TuiCalendarRangeComponent a.from.daySame(b.from.dayLimit(this.min, this.max)) && a.to.daySame(b.to.dayLimit(this.min, this.max)), ), - ) || - null) + ) || null ); }