From 6d10c1c94085f881c9fcdd215a900b97a109a322 Mon Sep 17 00:00:00 2001 From: robigan <35210888+robigan@users.noreply.github.com> Date: Sun, 2 Jun 2024 14:48:27 +0200 Subject: [PATCH] Fix missing changes --- .../components/forms/common_custom_times_matches.tsx | 8 +------- frontend/src/components/modals/match_modal.tsx | 8 +++++++- frontend/src/components/modals/match_update_modal.tsx | 11 ++++++----- 3 files changed, 14 insertions(+), 13 deletions(-) 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); + }} />