From dc168b3d25c708e890e7dc25f409fea11e0c7e2a Mon Sep 17 00:00:00 2001 From: Nick Vander Kolk Date: Mon, 4 Jan 2021 11:50:57 -0500 Subject: [PATCH] Fixing use12hours not updating when PM is clicked. --- src/panels/TimePanel/TimeBody.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/TimePanel/TimeBody.tsx b/src/panels/TimePanel/TimeBody.tsx index 5e2cf10a1..daba920e1 100644 --- a/src/panels/TimePanel/TimeBody.tsx +++ b/src/panels/TimePanel/TimeBody.tsx @@ -147,7 +147,7 @@ function TimeBody(props: TimeBodyProps) { value: hourValue, }; }); - }, [use12Hours, memorizedRawHours]); + }, [use12Hours, isPM, memorizedRawHours]); const minutes = generateUnits(0, 59, minuteStep, disabledMinutes && disabledMinutes(originHour));