Skip to content

Commit

Permalink
fix: hide unclaimed png balance as its slowing down app unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
SarjuHansaliya committed Dec 17, 2023
1 parent 034ea1a commit f47ecf6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import { DISCORD_SUPPORT, NETWORK_CURRENCY, NETWORK_LABELS, supportedWallets } f
import { useMedia } from 'react-use'
import { MobileHeader } from './MobileHeader'
import { CHAINS, Chain } from '@pangolindex/sdk'
import { useTotalPngEarnedHook } from 'src/state/stake/multiChainsHooks'
import { useWallet } from 'src/state/user/hooks'
import SwitchSubgraph from 'src/components/SwitchSubgraph'

Expand Down Expand Up @@ -85,8 +84,6 @@ export default function Header({ activeMobileMenu, handleMobileMenu }: Props) {

const png = PNG[chainId]

const unclaimedPNG = useTotalPngEarnedHook[chainId]()

const { data: pngCirculationSupply } = usePNGCirculationSupply()

const handleSelectChain = useCallback(
Expand Down Expand Up @@ -168,7 +165,6 @@ export default function Header({ activeMobileMenu, handleMobileMenu }: Props) {
)}
<TokenInfoModal
open={showPngBalanceModal}
unclaimedAmount={unclaimedPNG}
circulationSupply={pngCirculationSupply}
closeModal={closePngBalanceModal}
token={png}
Expand Down

0 comments on commit f47ecf6

Please sign in to comment.