File tree 2 files changed +3
-1
lines changed
packages/bento-design-system/src/DateField
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ function RangeDateField(props: RangeDateFieldProps) {
119
119
export type DateFieldProps = SingleDateFieldProps | RangeDateFieldProps ;
120
120
121
121
export function DateField ( props : DateFieldProps ) {
122
+ // Note: checking this case in the pattern matching below doesn't work for some reason
122
123
if ( props . type == null ) {
123
124
return < SingleDateField { ...props } /> ;
124
125
}
Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ function RangeDateInput(props: RangeDateInputProps) {
117
117
export type DateInputProps = SingleDateInputProps | RangeDateInputProps ;
118
118
119
119
export function DateInput ( props : SingleDateInputProps | RangeDateInputProps ) {
120
- if ( props . type == undefined ) {
120
+ // Note: checking this case in the pattern matching below doesn't work for some reason
121
+ if ( props . type == null ) {
121
122
return < SingleDateInput { ...props } /> ;
122
123
}
123
124
return match ( props )
You can’t perform that action at this time.
0 commit comments