Skip to content

Commit

Permalink
fix: Pool transition behind feature flag (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed Jun 10, 2024
1 parent 52df775 commit e2baa83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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
11 changes: 6 additions & 5 deletions apps/wallet-mobile/src/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ export const features = {
search: __DEV__ || false,
nfts: __DEV__ || false,
},
useTestnet: __DEV__ ? false : false,
startWithIndexScreen: __DEV__ ? false : false,
prefillWalletInfo: __DEV__ ? false : false,
showProdPoolsInDev: __DEV__ ? false : false,
moderatingNftsEnabled: __DEV__ ? false : false,
useTestnet: false,
prefillWalletInfo: false,
showProdPoolsInDev: __DEV__,
moderatingNftsEnabled: false,
walletListFeedback: __DEV__,
poolTransition: __DEV__,
}

export const debugWalletInfo = {
Expand Down

0 comments on commit e2baa83

Please sign in to comment.