Skip to content

Commit 03259e2

Browse files
committed
fixes type error
1 parent b8c06db commit 03259e2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/components/Quickfix.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ const Quickfix: FunctionComponent<{ vuln: DetailedDependencyVulnDTO }> = ({
139139
</span>
140140
<span> by upgrading from: </span>
141141
<span className="flex flex-row gap-2">
142-
<Badge
143-
className="font-mono"
144-
variant={"outline"}
145-
>{`${name + "@" + version}`}</Badge>
142+
<Badge className="font-mono" variant={"outline"}>
143+
{beautifyPurl(vulnerabilityPath)}
144+
</Badge>
146145
<ArrowRight className="w-4" />
147146
<Badge
148147
variant={"outline"}

0 commit comments

Comments
 (0)