Skip to content

Commit

Permalink
Pool transition behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed Apr 22, 2024
1 parent ef40a33 commit 1700afa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {defineMessages, useIntl} from 'react-intl'
import {useQuery} from 'react-query'

import {useStakingInfo} from '../../Dashboard/StakePoolInfos'
import {features} from '../../features'
import {useSelectedWallet} from '../../features/WalletManager/Context'
import {YoroiWallet} from '../../yoroi-wallets/cardano/types'
import {asQuantity, Quantities} from '../../yoroi-wallets/utils'
Expand Down Expand Up @@ -39,7 +40,7 @@ export const usePoolTransition = () => {
retry: false,
staleTime: 20 * 1000,
queryKey: [wallet.id, 'poolTransition', currentPoolId],
queryFn: () => poolInfoApi.getTransition(currentPoolId),
queryFn: () => (features.poolTransition ? poolInfoApi.getTransition(currentPoolId) : null),
})

const poolTransition = poolTransitionQuery.data ?? null
Expand Down
1 change: 1 addition & 0 deletions apps/wallet-mobile/src/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const features = {
showProdPoolsInDev: __DEV__,
moderatingNftsEnabled: false,
walletListFeedback: __DEV__,
poolTransition: __DEV__,
}

export const debugWalletInfo = {
Expand Down

0 comments on commit 1700afa

Please sign in to comment.