Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
fix(ui): higest->highest typos
Browse files Browse the repository at this point in the history
Signed-off-by: András Jáky <[email protected]>
  • Loading branch information
akijakya committed Aug 5, 2024
1 parent f0190fc commit 81e6f04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/src/layout/Dashboard/FindingsImpactWidget/index.jsx
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -22,7 +22,7 @@ const TABS_COLUMNS_MAPPING = {
customDisplay: ({ vulnerability }) => {
const { severity, cvss, vulnerabilityName } = vulnerability || {};
const { score, severity: cvssSeverity } =
getHigestVersionCvssData(cvss);
getHighestVersionCvssData(cvss);

return (
<SeverityWithCvssDisplay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Title from "components/Title";
import ProgressBar, { STATUS_MAPPING } from "components/ProgressBar";
import SeverityDisplay from "components/SeverityDisplay";
import SeverityWithCvssDisplay from "components/SeverityWithCvssDisplay";
import { getHigestVersionCvssData } from "utils/utils";
import { getHighestVersionCvssData } from "utils/utils";
import LinksDisplay from "layout/Findings/LinkesDisplay";
import ScoreTag from "./ScoreTag";
import { FindingsDetailsCommonFields } from "../utils";
Expand Down Expand Up @@ -56,7 +56,7 @@ const TabVulnerabilityDetails = ({ data }) => {
metrics,
exploitabilityScore,
impactScore,
} = getHigestVersionCvssData(cvss);
} = getHighestVersionCvssData(cvss);
const {
S = {},
AV = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 (
<SeverityWithCvssDisplay
Expand Down
2 changes: 1 addition & 1 deletion ui/src/utils/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const formatNumber = (value) =>
export const getScanName = ({ name, startTime }) =>
`${name} ${formatDate(startTime)}`;

export const getHigestVersionCvssData = (cvssData) => {
export const getHighestVersionCvssData = (cvssData) => {
if (isEmpty(cvssData)) {
return {};
}
Expand Down

0 comments on commit 81e6f04

Please sign in to comment.