diff --git a/frontend/components/Reports/ScanFinding.jsx b/frontend/components/Reports/ScanFinding.jsx index 02c21086d..3e7d86d68 100644 --- a/frontend/components/Reports/ScanFinding.jsx +++ b/frontend/components/Reports/ScanFinding.jsx @@ -23,7 +23,7 @@ const ScanFinding = ({ let hasMoreInfo = ''; let ruleId = ''; - if ((sbtType === 'owasp-zap') || (sbtType === 'owasp-zap')) { + if ((sbtType === 'zap') || (sbtType === 'owasp-zap')) { ({ name: title, solution, description, } = finding); diff --git a/frontend/pages/Reports/ShowReport.jsx b/frontend/pages/Reports/ShowReport.jsx index 9f7cc91bb..566fe5bf1 100644 --- a/frontend/pages/Reports/ShowReport.jsx +++ b/frontend/pages/Reports/ShowReport.jsx @@ -6,7 +6,6 @@ import Zap from '../../components/Reports/Zap'; import ReportLoading from '../../components/Reports/Loading'; import ReportNotFound from '../../components/Reports/ReportNotFound'; import { useReportData } from '../../hooks/useReportData'; -import { useDefaultScanRules } from '../../hooks/useDefaultScanRules'; export default function Report() { const { id } = useParams(); diff --git a/frontend/pages/Reports/ShowReportSubPage.jsx b/frontend/pages/Reports/ShowReportSubPage.jsx index f0e66cbfe..ebe61bb67 100644 --- a/frontend/pages/Reports/ShowReportSubPage.jsx +++ b/frontend/pages/Reports/ShowReportSubPage.jsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import React from 'react'; import { useParams } from 'react-router-dom'; import A11yScanChild from '../../components/Reports/A11yScanChildLayout';