diff --git a/web/src/layout/package/securityReport/index.tsx b/web/src/layout/package/securityReport/index.tsx index bb36bb571c..b9232adca7 100644 --- a/web/src/layout/package/securityReport/index.tsx +++ b/web/src/layout/package/securityReport/index.tsx @@ -32,7 +32,7 @@ interface Props { } const SecurityReport = (props: Props) => { - const [isOlderThenOneYear, setIsOlderThenOneYear] = useState(false); + const [isOlderThanOneYear, setIsOlderThanOneYear] = useState(true); const hasSomeWhitelistedContainers = useCallback((): boolean => { return props.containers.some((container: ContainerImage) => container.whitelisted); @@ -51,11 +51,11 @@ const SecurityReport = (props: Props) => { useEffect(() => { const diffInYears = calculateDiffInYears(props.ts); - setIsOlderThenOneYear(diffInYears > 1); + setIsOlderThanOneYear(diffInYears > 1); }, [props.ts]); // Do not display security reports when version is older than 1 year - if (isOlderThenOneYear) return null; + if (isOlderThanOneYear) return null; if (!props.disabledReport) { if (isNull(props.summary) || isUndefined(props.summary) || isEmpty(props.summary)) {