Skip to content

Commit

Permalink
Merge pull request #31 from codingknite/wvm-archiver-backfill-addr
Browse files Browse the repository at this point in the history
wvm-archiver explorer tag issue
  • Loading branch information
codingknite authored Oct 14, 2024
2 parents dcaae21 + 2b5a606 commit 537e687
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/hooks/useWvmArchiver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ const wvmNetworks = [
];

export function useWvmArchiver({ address }: Props) {
const isWvmNetwork = wvmNetworks.find((network) => network.archiver_address === address);
const isWvmNetwork = wvmNetworks.some(
(network) =>
network.archiver_address === address ||
(network.backfill_address && network.backfill_address === address),
);

if (isWvmNetwork) {
return true;
}

return false;
return isWvmNetwork;
}

0 comments on commit 537e687

Please sign in to comment.