Skip to content

Commit

Permalink
Merge pull request #107 from ar-io/link-to-report
Browse files Browse the repository at this point in the history
fix(report): link to the report for the epoch
  • Loading branch information
kunstmusik authored Nov 11, 2024
2 parents 1ead003 + 6b1c5a8 commit 349b6be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/Gateway/SnitchRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ const ReportedOnByCard = ({ gateway }: { gateway?: AoGatewayWithAddress }) => {
>
<StatsArrowIcon className="size-4" />
<div>
{observerToGatewayMap ? (
<Link to={`/gateways/${observerToGatewayMap[observer]}`}>
{observerToGatewayMap && epochs ? (
<Link
to={`/gateways/${observerToGatewayMap[observer]}/reports/${epochs?.[selectedEpochIndex]?.observations.reports[observer]}`}
>
{observer}
</Link>
) : (
observer
<Placeholder className="h-4" />
)}
</div>
</div>
Expand Down

0 comments on commit 349b6be

Please sign in to comment.