From daa9a5867879b0a85b11459e8a7ed43d9f905a92 Mon Sep 17 00:00:00 2001 From: GZTime Date: Tue, 23 Apr 2024 02:31:13 +0800 Subject: [PATCH] fix(frontend): unable to renew as expected --- src/GZCTF/ClientApp/src/components/InstanceEntry.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GZCTF/ClientApp/src/components/InstanceEntry.tsx b/src/GZCTF/ClientApp/src/components/InstanceEntry.tsx index 853043e81..a096704cc 100644 --- a/src/GZCTF/ClientApp/src/components/InstanceEntry.tsx +++ b/src/GZCTF/ClientApp/src/components/InstanceEntry.tsx @@ -105,7 +105,7 @@ export const InstanceEntry: FC = (props) => { useEffect(() => { setWithContainer(!!context.instanceEntry) const countdown = dayjs.duration(dayjs(context.closeTime ?? 0).diff(dayjs())) - setCanExtend(countdown.asMinutes() < 10) + setCanExtend(countdown.asMinutes() < (config.renewalWindow ?? 10)) }, [context]) const onExtend = () => {