Skip to content

Commit

Permalink
fix hash link for intoto entries
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <bdehamer@github.com>
  • Loading branch information
bdehamer committed Jul 20, 2023
1 parent 9107ddb commit 29f4575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/components/Intoto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function IntotoViewer({ intoto }: { intoto: IntotoV002Schema }) {
sx={{ py: 1 }}
>
<NextLink
href={`/?hash=${intoto.content.hash?.algorithm}:${intoto.content.hash?.value}`}
href={`/?hash=${intoto.content.payloadHash?.algorithm}:${intoto.content.payloadHash?.value}`}
passHref
>
<Link>Hash</Link>
Expand All @@ -40,7 +40,7 @@ export function IntotoViewer({ intoto }: { intoto: IntotoV002Schema }) {
language="text"
style={atomDark}
>
{`${intoto.content.hash?.algorithm}:${intoto.content.hash?.value}`}
{`${intoto.content.payloadHash?.algorithm}:${intoto.content.payloadHash?.value}`}
</SyntaxHighlighter>

<Typography
Expand Down

0 comments on commit 29f4575

Please sign in to comment.