Skip to content

Commit

Permalink
Merge pull request #3721 from Emurgo/ruslan/trezor-withdrawals
Browse files Browse the repository at this point in the history
allow trezor withdrawals
  • Loading branch information
vsubhuman authored Oct 30, 2024
2 parents e55226a + de788f3 commit 86d79da
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ 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;
Expand Down Expand Up @@ -210,7 +211,10 @@ class StakingPageContent extends Component<AllProps> {
const currentlyDelegating = stores.delegation.isCurrentlyDelegating(publicDeriver.publicDeriverId);
const delegatedUtxo = stores.delegation.getDelegatedUtxoBalance(publicDeriver.publicDeriverId);
const delegatedRewards = stores.delegation.getRewardBalanceOrZero(publicDeriver);
const isParticipatingToGovernance = stores.delegation.governanceStatus?.drepDelegation !== null;

// <TODO:PENDING_REMOVAL> remove special check after governance for trezor is added
const isTrezor = (publicDeriver.type: WalletType) === 'trezor';
const isParticipatingToGovernance = stores.delegation.governanceStatus?.drepDelegation != null || isTrezor;

return (
<Box>
Expand Down

0 comments on commit 86d79da

Please sign in to comment.