Skip to content

Commit

Permalink
Merge pull request #672 from threshold-network/stake-details-authoriz…
Browse files Browse the repository at this point in the history
…ation-status-fix

Fix application status error on stake details page
  • Loading branch information
theref authored Nov 30, 2023
2 parents 4f9b5cb + b352de5 commit 6601946
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/Staking/StakeDetailsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { useAppDispatch, useAppSelector } from "../../../hooks/store"
import { useWeb3React } from "@web3-react/core"
import { AddressZero } from "@ethersproject/constants"
import { isAddress } from "../../../web3/utils"
import { stakingApplicationsSlice } from "../../../store/staking-applications"

const StakeDetailsPage: FC = () => {
const { stakingProviderAddress } = useParams()
Expand All @@ -41,6 +42,10 @@ const StakeDetailsPage: FC = () => {
if (!isAddress(stakingProviderAddress!)) navigate(`/staking`)
}, [stakingProviderAddress, navigate])

useEffect(() => {
dispatch(stakingApplicationsSlice.actions.getSupportedApps({}))
}, [dispatch])

useEffect(() => {
dispatch(
requestStakeByStakingProvider({ stakingProvider: stakingProviderAddress })
Expand Down

0 comments on commit 6601946

Please sign in to comment.