Skip to content

Commit 8722dfd

Browse files
author
sadik-malik
committed
fix: remove string from returnType in readValueAsDate
1 parent 754c686 commit 8722dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rhf-mui/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function getTimezone<TDate extends PickerValidDate>(
2424
export function readValueAsDate<TDate extends PickerValidDate>(
2525
adapter: ReturnType<typeof useLocalizationContext>,
2626
value: string | null | TDate
27-
): TDate | null | string {
27+
): TDate | null {
2828
if(typeof value === 'string'){
2929
if(value === ''){
3030
return null

0 commit comments

Comments
 (0)