Skip to content
Snippets Groups Projects
Commit ff99ba3f authored by Lukas's avatar Lukas Committed by mcfarhat
Browse files

Hide link icon if witness don`t have url path

parent 384c2d2d
No related branches found
No related tags found
2 merge requests!481bring recent develop changes to mater to match the backend,!471Hide link icon if witness don`t have url path
Pipeline #109361 canceled
......@@ -233,13 +233,15 @@ export default function Witnesses() {
>
{singleWitness.witness_name}
</Link>
<Link
href={singleWitness.url ?? ""}
target="_blank"
data-testid="witness-link"
>
<LinkIcon size={15} />
</Link>
{singleWitness.url && (
<Link
href={singleWitness.url}
target="_blank"
data-testid="witness-link"
>
<LinkIcon size={15} />
</Link>
)}
</div>
</TableCell>
<TableCell className="text-right">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment