Skip to content

Commit

Permalink
Fixed some UI issues too
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-01k committed Apr 23, 2024
1 parent 20631a5 commit aab42cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sections/yield/NewYieldFarming.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// React + Web3 Essentials
import React, { useEffect, useState } from 'react';
import React, { useContext, useEffect, useState } from 'react';
import { ethers } from 'ethers';

// External Packages
Expand All @@ -17,12 +17,13 @@ import { useAccount } from 'hooks';

// Internal Configs
import { abis, addresses } from 'config/index.js';
import useModalBlur, { MODAL_POSITION } from 'hooks/useModalBlur';
import StepsTransactionModal from 'components/StepsTransactionModal';
import { GlobalContext } from 'contexts/GlobalContext';

const NewYieldFarming = ({ setActiveTab }) => {
const { provider, account, chainId } = useAccount();

const { readOnlyWallet } = useContext(GlobalContext);

const [pushToken, setPushToken] = useState(null);
const [staking, setStaking] = useState(null);
const [yieldFarmingLP, setYieldFarmingLP] = useState(null);
Expand Down Expand Up @@ -121,7 +122,7 @@ const NewYieldFarming = ({ setActiveTab }) => {

getPoolStats();

if (account !== '0x0000000000000000000000000000000000000001') {
if (account !== readOnlyWallet) {
getUserDataPush();
getUserDataLP();
getLpPoolStats();
Expand Down

0 comments on commit aab42cc

Please sign in to comment.