diff --git a/frontend/src/components/forms/common_custom_times_matches.tsx b/frontend/src/components/forms/common_custom_times_matches.tsx index 31396cdae..ab61be8d6 100644 --- a/frontend/src/components/forms/common_custom_times_matches.tsx +++ b/frontend/src/components/forms/common_custom_times_matches.tsx @@ -64,7 +64,7 @@ export default function CommonCustomTimeMatchesForm< {t('minutes')}} placeholder={`${match.duration_minutes}`} @@ -112,12 +112,6 @@ export default function CommonCustomTimeMatchesForm< - {/* */} - + { + setCustomDurationEnabled(val); + if (val === false) form.setFieldValue('custom_duration_minutes', null); + }} setCustomMarginEnabled={(val) => { + setCustomMarginEnabled(val); + if (val === false) form.setFieldValue('custom_margin_minutes', null); + }} />