From f1c4d66888ee2ee8675359f93109d3c2db3f9fb4 Mon Sep 17 00:00:00 2001 From: Sergey Smolnikov Date: Tue, 22 Oct 2024 15:50:59 +0200 Subject: [PATCH] Fixed replica and container ends fields --- src/components/replica/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/replica/index.tsx b/src/components/replica/index.tsx index 76b18e537..dc2844893 100644 --- a/src/components/replica/index.tsx +++ b/src/components/replica/index.tsx @@ -59,8 +59,8 @@ const ContainerDuration: FunctionComponent<{ started: Date; ended: Date }> = ({ started, ended, }) => { - const [now, setNow] = useState(new Date()); useInterval(() => setNow(new Date()), 1000); + const [now, setNow] = useState(new Date()); return ( <> @@ -131,17 +131,13 @@ const Overview: FunctionComponent< <> {replica.containerStarted && ( )}