Skip to content

Commit

Permalink
Merge pull request #35 from ar-io/fix-observers-table
Browse files Browse the repository at this point in the history
fix(observers): read data using observerAddress
  • Loading branch information
kunstmusik authored Jul 9, 2024
2 parents ed6e08a + e1a9a5f commit 71b3249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Observers/ObserversTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ const ObserversTable = () => {
(acc, observer) => {
const gateway = gateways[observer.gatewayAddress];

const submitted = observations.reports[observer.gatewayAddress];
const submitted = observations.reports[observer.observerAddress];
const status = submitted ? 'Submitted' : 'Pending';
const numFailedGatewaysFound = submitted
? Object.values(observations.failureSummaries).reduce(
(acc, summary) => {
return (
acc + (summary.includes(observer.gatewayAddress) ? 1 : 0)
acc + (summary.includes(observer.observerAddress) ? 1 : 0)
);
},
0,
Expand Down

0 comments on commit 71b3249

Please sign in to comment.