Skip to content

Commit

Permalink
fix(suite): hide staking banner when debug not active
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Jan 23, 2025
1 parent 1c875ca commit 08dc1e4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import { Translation } from 'src/components/suite';
import { goto } from 'src/actions/suite/routerActions';
import { useDispatch, useSelector } from 'src/hooks/suite';
import { setFlag } from 'src/actions/suite/suiteActions';

import { selectSuiteFlags } from '../../../../reducers/suite/suiteReducer';
import { selectSuiteFlags, selectIsDebugModeActive } from 'src/reducers/suite/suiteReducer';

interface StakingBannerProps {
account: Account;
Expand All @@ -31,6 +30,8 @@ export const StakingBanner = ({ account }: StakingBannerProps) => {
const { route } = useSelector(state => state.router);
const apy = useSelector(state => selectPoolStatsApyData(state, account.symbol));
const theme = useTheme();
// TODO: remove when solana staking public
const isDebug = useSelector(selectIsDebugModeActive);

const closeBanner = () => {
switch (account.networkType) {
Expand Down Expand Up @@ -61,9 +62,8 @@ export const StakingBanner = ({ account }: StakingBannerProps) => {
return {
isStakingBannerClosed: stakeSolBannerClosed,
minStakingAmount: MIN_SOL_AMOUNT_FOR_STAKING,
isSupportedStakingNetworkSymbol: isSupportedSolStakingNetworkSymbol(
account.symbol,
),
isSupportedStakingNetworkSymbol:
isDebug && isSupportedSolStakingNetworkSymbol(account.symbol),
};
default:
return {
Expand Down

0 comments on commit 08dc1e4

Please sign in to comment.