Skip to content

Commit 9fe21cc

Browse files
committed
rename variable
1 parent 748e116 commit 9fe21cc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • apps/site/components/EOL/VulnerabilitiesTable

apps/site/components/EOL/VulnerabilitiesTable/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ const VulnerabilitiesTable: FC<{
2323
</tr>
2424
</thead>
2525
<tbody>
26-
{vulnerabilities.map((vuln, i) => (
26+
{vulnerabilities.map((vulnerability, i) => (
2727
<tr key={i}>
2828
<td>
29-
{vuln.cve.length
30-
? vuln.cve.map(cveId => (
29+
{vulnerability.cve.length
30+
? vulnerability.cve.map(cveId => (
3131
<div key={cveId}>
3232
<LinkWithArrow
3333
href={`https://www.cve.org/CVERecord?id=${cveId}`}
@@ -41,15 +41,15 @@ const VulnerabilitiesTable: FC<{
4141
: '-'}
4242
</td>
4343
<td>
44-
<VulnerabilityChip severity={vuln.severity} />
44+
<VulnerabilityChip severity={vulnerability.severity} />
4545
</td>
4646
<td className={classNames(maxWidth, 'truncate')}>
47-
{vuln.description || vuln.overview || '-'}
47+
{vulnerability.description || vulnerability.overview || '-'}
4848
</td>
4949
<td>
50-
{vuln.ref ? (
50+
{vulnerability.ref ? (
5151
<LinkWithArrow
52-
href={vuln.ref}
52+
href={vulnerability.ref}
5353
target="_blank"
5454
rel="noopener noreferrer"
5555
>

0 commit comments

Comments
 (0)