create coupon
This commit is contained in:
@@ -28,7 +28,7 @@ const DatePickerComponent: FC<Props> = (props: Props) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (value) {
|
||||
const formattedDate = `${value.year}/${value.month.number}/${value.day}`;
|
||||
const formattedDate = `${value.year}-${value.month.number}-${value.day}`;
|
||||
props.onChange(formattedDate);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
||||
Reference in New Issue
Block a user