diff --git a/ui/src/layout/Dashboard/FindingsImpactWidget/index.jsx b/ui/src/layout/Dashboard/FindingsImpactWidget/index.jsx index c11494b35..f6204c4f4 100644 --- a/ui/src/layout/Dashboard/FindingsImpactWidget/index.jsx +++ b/ui/src/layout/Dashboard/FindingsImpactWidget/index.jsx @@ -1,6 +1,6 @@ import React from "react"; import SeverityWithCvssDisplay from "components/SeverityWithCvssDisplay"; -import { getHigestVersionCvssData, formatNumber } from "utils/utils"; +import { getHighestVersionCvssData, formatNumber } from "utils/utils"; import { FINDINGS_MAPPING, VULNERABILITY_FINDINGS_ITEM, @@ -22,7 +22,7 @@ const TABS_COLUMNS_MAPPING = { customDisplay: ({ vulnerability }) => { const { severity, cvss, vulnerabilityName } = vulnerability || {}; const { score, severity: cvssSeverity } = - getHigestVersionCvssData(cvss); + getHighestVersionCvssData(cvss); return ( { metrics, exploitabilityScore, impactScore, - } = getHigestVersionCvssData(cvss); + } = getHighestVersionCvssData(cvss); const { S = {}, AV = {}, diff --git a/ui/src/layout/Findings/Vulnerabilities/VulnerabilitiesTable.jsx b/ui/src/layout/Findings/Vulnerabilities/VulnerabilitiesTable.jsx index bef02247e..1a5d68f53 100644 --- a/ui/src/layout/Findings/Vulnerabilities/VulnerabilitiesTable.jsx +++ b/ui/src/layout/Findings/Vulnerabilities/VulnerabilitiesTable.jsx @@ -4,7 +4,7 @@ import SeverityWithCvssDisplay, { SEVERITY_ITEMS, } from "components/SeverityWithCvssDisplay"; import { OPERATORS } from "components/Filter"; -import { getHigestVersionCvssData, toCapitalized } from "utils/utils"; +import { getHighestVersionCvssData, toCapitalized } from "utils/utils"; import { getScanColumnsConfigList } from "layout/Findings/utils"; import { FILTER_TYPES } from "context/FiltersProvider"; import FindingsTablePage from "../FindingsTablePage"; @@ -31,7 +31,7 @@ const VulnerabilitiesTable = () => { Cell: ({ row }) => { const { id, findingInfo } = row.original; const { severity, cvss } = findingInfo || {}; - const cvssScoreData = getHigestVersionCvssData(cvss); + const cvssScoreData = getHighestVersionCvssData(cvss); return ( export const getScanName = ({ name, startTime }) => `${name} ${formatDate(startTime)}`; -export const getHigestVersionCvssData = (cvssData) => { +export const getHighestVersionCvssData = (cvssData) => { if (isEmpty(cvssData)) { return {}; }