Skip to content

Commit fe64d91

Browse files
committed
magic trick
1 parent 4e5a08b commit fe64d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/bento-design-system/src/DateField/DateField.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ function RangeDateField(props: RangeDateFieldProps) {
119119
export type DateFieldProps = SingleDateFieldProps | RangeDateFieldProps;
120120

121121
export function DateField(props: DateFieldProps) {
122-
// @ts-ignore
123122
return match(props)
124-
.with({ type: "single" }, { type: undefined }, (props) => <SingleDateField {...props} />)
123+
.with({ type: "single" }, (props) => <SingleDateField {...props} />)
124+
.with({ type: undefined }, (props) => <SingleDateField {...props} />)
125125
.with({ type: "range" }, (props) => <RangeDateField {...props} />)
126126
.exhaustive();
127127
}

0 commit comments

Comments
 (0)