From 72e6100ba6957e53ce3d9cf74f111fafe2d6e227 Mon Sep 17 00:00:00 2001 From: vantuz-subhuman Date: Fri, 15 Nov 2024 17:03:07 +0300 Subject: [PATCH] removed tmp check for trezor --- .../app/containers/wallet/staking/StakingPageContent.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/yoroi-extension/app/containers/wallet/staking/StakingPageContent.js b/packages/yoroi-extension/app/containers/wallet/staking/StakingPageContent.js index 301e895e84..85c28d16fe 100644 --- a/packages/yoroi-extension/app/containers/wallet/staking/StakingPageContent.js +++ b/packages/yoroi-extension/app/containers/wallet/staking/StakingPageContent.js @@ -31,7 +31,6 @@ import type { LayoutComponentMap } from '../../../styles/context/layout'; import type { StoresAndActionsProps } from '../../../types/injectedProps.types'; import type { $npm$ReactIntl$IntlFormat } from 'react-intl'; import { MultiToken } from '../../../api/common/lib/MultiToken'; -import type { WalletType } from '../../../../chrome/extension/background/types'; // populated by ConfigWebpackPlugin declare var CONFIG: ConfigType; @@ -212,9 +211,7 @@ class StakingPageContent extends Component { const delegatedUtxo = stores.delegation.getDelegatedUtxoBalance(publicDeriver.publicDeriverId); const delegatedRewards = stores.delegation.getRewardBalanceOrZero(publicDeriver); - // remove special check after governance for trezor is added - const isTrezor = (publicDeriver.type: WalletType) === 'trezor'; - const isParticipatingToGovernance = stores.delegation.governanceStatus?.drepDelegation != null || isTrezor; + const isParticipatingToGovernance = stores.delegation.governanceStatus?.drepDelegation != null; return (