From 1a15f9474b14da26fefd5dbdd948d81bf9803734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Fri, 17 May 2024 12:23:51 +0300 Subject: [PATCH] refactor --- src/app/components/calendar/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 5968d228423..6ce72dfc060 100644 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -2689,7 +2689,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { toggleAMPMIfNotMinDate(newPM: boolean) { let value = this.value; - if ((this.selectionMode === 'range' || this.selectionMode === 'multiple') && Array.isArray(value) && value.length > 0) { + if ((this.selectionMode == 'range' || this.selectionMode == 'multiple') && Array.isArray(value) && value.length > 0) { value = value[value.length - 1]; } const valueDateString = value ? value.toDateString() : null;