Skip to content

Commit 25d41da

Browse files
committed
chore(*): Simplify further getting of displayFormat.
1 parent 726774e commit 25d41da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/date-range-picker/date-range-picker.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -894,10 +894,7 @@ export default class IgcDateRangePickerComponent extends FormAssociatedRequiredM
894894

895895
const { formatDisplayDate, predefinedToDateDisplayFormat } = DateTimeUtil;
896896
const { start, end } = this.value;
897-
const displayFormat =
898-
predefinedToDateDisplayFormat(this._displayFormat) ??
899-
this._displayFormat ??
900-
this.inputFormat;
897+
const displayFormat = predefinedToDateDisplayFormat(this.displayFormat);
901898

902899
const startValue = formatDisplayDate(start, this.locale, displayFormat);
903900
const endValue = formatDisplayDate(end, this.locale, displayFormat);

0 commit comments

Comments
 (0)