Skip to content

Commit

Permalink
fix(lp-earning): infinite load (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv authored Jul 31, 2023
1 parent 721229e commit cfd8a8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/MyEarnings/TotalEarningsAndChainSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ReactComponent as RefreshIcon } from 'assets/svg/refresh.svg'
import { formatUSDValue } from 'components/EarningAreaChart/utils'
import { MouseoverTooltip } from 'components/Tooltip'
import { EMPTY_FUNCTION } from 'constants/index'
import { COMING_SOON_NETWORKS_FOR_MY_EARNINGS_LEGACY } from 'constants/networks'
import { useActiveWeb3React } from 'hooks'
import useMixpanel, { MIXPANEL_TYPE } from 'hooks/useMixpanel'
import useTheme from 'hooks/useTheme'
Expand Down Expand Up @@ -61,7 +62,10 @@ const RefreshButton = () => {

dispatch(earningApi.util.resetApiState())
elasticTrigger({ account, chainIds: selectedChainIds })
elasticLegacyTrigger({ account, chainIds: selectedChainIds })
elasticLegacyTrigger({
account,
chainIds: selectedChainIds.filter(item => !COMING_SOON_NETWORKS_FOR_MY_EARNINGS_LEGACY.includes(item)),
})
// classicTrigger({ account, chainIds: selectedChainIds })
}

Expand Down

0 comments on commit cfd8a8c

Please sign in to comment.