Skip to content

Commit

Permalink
dashboard: fix guardian filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Jul 29, 2024
1 parent efcfd46 commit 81bc406
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { GitHub, ReceiptLongOutlined, SyncAltOutlined } from '@mui/icons-materia
import { AppBar, Box, Button, Hidden, IconButton, Toolbar, Typography } from '@mui/material';
import { contracts } from '@wormhole-foundation/sdk-base';
import { NavLink, Route, Switch, useLocation } from 'react-router-dom';
import { useCurrentEnvironment } from '../contexts/NetworkContext';
import useChainHeartbeats from '../hooks/useChainHeartbeats';
import useGetGuardianSet from '../hooks/useGetGuardianSet';
import useHeartbeats from '../hooks/useHeartbeats';
Expand Down Expand Up @@ -88,9 +89,10 @@ function NavLinks() {
}

function Main() {
const env = useCurrentEnvironment();
const [, currentGuardianSet] = useGetGuardianSet(
'Ethereum',
contracts.coreBridge('Mainnet', 'Ethereum')
contracts.coreBridge(env, 'Ethereum')
);
const heartbeats = useHeartbeats(currentGuardianSet);
const chainIdsToHeartbeats = useChainHeartbeats(heartbeats);
Expand Down

0 comments on commit 81bc406

Please sign in to comment.