From 0600f3ac020fd1fbc3332b4baff00db374ef8a30 Mon Sep 17 00:00:00 2001 From: Matt Driscoll Date: Mon, 26 Aug 2024 16:51:49 -0700 Subject: [PATCH] review fixes --- .../src/components/input-date-picker/input-date-picker.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/calcite-components/src/components/input-date-picker/input-date-picker.tsx b/packages/calcite-components/src/components/input-date-picker/input-date-picker.tsx index b3eb6f096a9..f2bbe700d71 100644 --- a/packages/calcite-components/src/components/input-date-picker/input-date-picker.tsx +++ b/packages/calcite-components/src/components/input-date-picker/input-date-picker.tsx @@ -1090,11 +1090,8 @@ export class InputDatePicker ) : null; - this.setInputValue((date && this.dateTimeFormat?.format(date)) ?? "", "start"); - this.setInputValue( - (this.range && endDate && this.dateTimeFormat?.format(endDate)) ?? "", - "end", - ); + this.setInputValue((date && this.dateTimeFormat.format(date)) ?? "", "start"); + this.setInputValue((this.range && endDate && this.dateTimeFormat.format(endDate)) ?? "", "end"); } private setInputValue = (newValue: string, input: "start" | "end" = "start"): void => {