Skip to content

Commit

Permalink
(PC-31810)[PRO] fix: support undefined duration value in BaseTimePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
asaez-pass authored and abouabdallaoui-pass committed Sep 12, 2024
1 parent d4db452 commit 87ea27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/src/ui-kit/form/TimePicker/BaseTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const BaseTimePicker = ({
const optionsListId = useId()
const timeOptions = getTimeOptions(suggestedTimeList)
const hasTimeOptions = timeOptions.length > 0
const formattedValue = props.value.padStart(5, '0')
const formattedValue = props.value ? props.value.padStart(5, '0') : ''

return (
<>
Expand Down

0 comments on commit 87ea27c

Please sign in to comment.