Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 17, 2024
1 parent 55418f1 commit 1a15f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a15f94

Please sign in to comment.