Skip to content

Commit

Permalink
fix: tz input source
Browse files Browse the repository at this point in the history
  • Loading branch information
RabahZeineddine committed Oct 12, 2023
1 parent c447dc2 commit 0d7d5ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/inputs/TzDateInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function TzDateInput(props: TzDateInputProps) {
const [value, setValue] = React.useState<Dayjs | null>()

const handleValueChange = (newValue: Dayjs | null) => {
setFormValue(field.name, newValue?.toISOString(), { shouldDirty: true })
setFormValue(props.source, newValue?.toISOString(), { shouldDirty: true })
}

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/inputs/TzTimeInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function TzTimeInput(props: TzTimeInputProps) {
newValue?.set('date', dateSourceValue.getUTCDate())
}

setFormValue(field.name, newValue?.toISOString(), {
setFormValue(props.source, newValue?.toISOString(), {
shouldDirty: true,
})
}
Expand Down

0 comments on commit 0d7d5ff

Please sign in to comment.