Skip to content

Commit

Permalink
🚨 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebipap committed Aug 17, 2023
1 parent 08edac1 commit 3e9abe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contexts/GetEXAContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export const GetEXAProvider: FC<PropsWithChildren> = ({ children }) => {
}, [qtyIn, setTXError, setScreen, setTXStep, swapper, walletAddress, walletClient]);

useEffect(() => {
if (!bridge) return;
if (!isBridge) return;
if (bridgeStatus) {
const { destinationTxStatus, sourceTxStatus } = bridgeStatus;
const bridgeInProgess = sourceTxStatus === 'PENDING' || destinationTxStatus === 'PENDING';
Expand Down
5 changes: 4 additions & 1 deletion pages/governance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import VotingPower from 'components/governance/VotingPower';
import Proposals from 'components/governance/Proposals';
import useMerkleTree from 'hooks/useMerkleTree';
import GetEXA from 'components/GetExa';
import { GetEXAProvider } from 'contexts/GetEXAContext';

const Governance: NextPage = () => {
const { t } = useTranslation();
Expand All @@ -36,7 +37,9 @@ const Governance: NextPage = () => {
</Typography>
</Box>
<Box display="flex" gap={2} flexWrap="wrap" alignItems="flex-start">
<GetEXA />
<GetEXAProvider>
<GetEXA />
</GetEXAProvider>
<Box flex={1}>
{isConnected || impersonateActive ? (
<Box
Expand Down

0 comments on commit 3e9abe8

Please sign in to comment.