Skip to content

Commit

Permalink
fix(frontend): unable to renew as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 22, 2024
1 parent cc63f33 commit daa9a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/components/InstanceEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const InstanceEntry: FC<InstanceEntryProps> = (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 = () => {
Expand Down

0 comments on commit daa9a58

Please sign in to comment.