diff --git a/src/components/@atoms/Calendar/Calendar.tsx b/src/components/@atoms/Calendar/Calendar.tsx index 3605244ab..57e948a8b 100644 --- a/src/components/@atoms/Calendar/Calendar.tsx +++ b/src/components/@atoms/Calendar/Calendar.tsx @@ -1,4 +1,4 @@ -import { ForwardedRef, forwardRef, InputHTMLAttributes } from 'react' +import { ForwardedRef, forwardRef, InputHTMLAttributes, useState } from 'react' import styled, { css } from 'styled-components' import CalendarSVG from '@app/assets/Calendar.svg' @@ -77,6 +77,8 @@ export const Calendar = forwardRef( ref: ForwardedRef, ) => { const inputRef = useDefaultRef(ref) + const [minDuratiion] = useState(min ?? value) + const minDate = secondsToDate(minDuratiion) return (