@@ -206,7 +206,7 @@ const FormDelegationRequest = props => {
206206
207207 const showPasswordInput = ( ) => {
208208 if ( decryptedPhrase || currentSession . wallet . walletType === LEDGER_WALLET_TYPE ) {
209- if ( ! isLedgerConnected ) {
209+ if ( ! isLedgerConnected && currentSession . wallet . walletType === LEDGER_WALLET_TYPE ) {
210210 ledgerNotification ( currentSession . wallet , walletAsset ! ) ;
211211 }
212212 showConfirmationModal ( ) ;
@@ -682,7 +682,7 @@ const FormDelegationOperations = props => {
682682
683683 const showPasswordInput = ( ) => {
684684 if ( decryptedPhrase || currentSession . wallet . walletType === LEDGER_WALLET_TYPE ) {
685- if ( ! isLedgerConnected ) {
685+ if ( ! isLedgerConnected && currentSession . wallet . walletType === LEDGER_WALLET_TYPE ) {
686686 ledgerNotification ( currentSession . wallet , defaultAsset ! ) ;
687687 }
688688 showConfirmationModal ( ) ;
@@ -796,10 +796,10 @@ const FormDelegationOperations = props => {
796796
797797 function convertDelegations ( allDelegations : StakingTransactionData [ ] , currentAsset : UserAsset ) {
798798 return allDelegations
799- . map ( dlg => {
799+ . map ( ( dlg , idx ) => {
800800 const stakedAmount = getUIDynamicAmount ( dlg . stakedAmount , currentAsset ) ;
801801 const data : StakingTabularData = {
802- key : dlg . validatorAddress + dlg . stakedAmount ,
802+ key : ` ${ idx } _ ${ dlg . validatorAddress } _ ${ dlg . stakedAmount } ` ,
803803 delegatorAddress : dlg . delegatorAddress ,
804804 validatorAddress : dlg . validatorAddress ,
805805 stakedAmountWithSymbol : `${ stakedAmount } ${ currentAsset . symbol } ` ,
@@ -1074,7 +1074,7 @@ const FormWithdrawStakingReward = () => {
10741074 ) => {
10751075 return allRewards
10761076 . filter ( reward => Big ( reward . amount ) . gte ( Big ( 0 ) ) )
1077- . map ( reward => {
1077+ . map ( ( reward , idx ) => {
10781078 const rewardAmount = getUIDynamicAmount ( reward . amount , currentAsset ) ;
10791079 const marketPrice =
10801080 currentMarketPrice && currentMarketPrice . price ? new Big ( currentMarketPrice . price ) : '' ;
@@ -1083,7 +1083,7 @@ const FormWithdrawStakingReward = () => {
10831083 ? new Big ( rewardAmount ) . times ( marketPrice ) . toFixed ( 2 )
10841084 : '' ;
10851085 const rewardData : RewardsTabularData = {
1086- key : `${ reward . validatorAddress } ${ reward . amount } ` ,
1086+ key : `${ idx } _ ${ reward . validatorAddress } ${ reward . amount } ` ,
10871087 rewardAmount : `${ rewardAmount } ${ currentAsset . symbol } ` ,
10881088 rewardMarketPrice :
10891089 rewardMarketPrice !== '' && currentMarketPrice
@@ -1138,7 +1138,7 @@ const FormWithdrawStakingReward = () => {
11381138
11391139 const showPasswordInput = ( action : string ) => {
11401140 if ( decryptedPhrase || currentSession . wallet . walletType === LEDGER_WALLET_TYPE ) {
1141- if ( ! isLedgerConnected ) {
1141+ if ( ! isLedgerConnected && currentSession . wallet . walletType === LEDGER_WALLET_TYPE ) {
11421142 ledgerNotification ( currentSession . wallet , walletAsset ! ) ;
11431143 return ;
11441144 }
@@ -1679,10 +1679,10 @@ const StakingPage = () => {
16791679 ) => {
16801680 return (
16811681 allUnbondingDelegations
1682- . map ( dlg => {
1682+ . map ( ( dlg , idx ) => {
16831683 const unbondingAmount = getUIDynamicAmount ( dlg . unbondingAmount , currentAsset ) ;
16841684 const data : UnbondingDelegationTabularData = {
1685- key : `${ dlg . validatorAddress } _${ dlg . unbondingAmount } _${ dlg . completionTime } ` ,
1685+ key : `${ idx } _ ${ dlg . validatorAddress } _${ dlg . unbondingAmount } _${ dlg . completionTime } ` ,
16861686 delegatorAddress : dlg . delegatorAddress ,
16871687 validatorAddress : dlg . validatorAddress ,
16881688 completionTime : new Date ( dlg . completionTime ) . toString ( ) ,
0 commit comments