diff --git a/src/components/staking/StakingGraphPage.vue b/src/components/staking/StakingGraphPage.vue index 350dd1d2c..73bc510a8 100644 --- a/src/components/staking/StakingGraphPage.vue +++ b/src/components/staking/StakingGraphPage.vue @@ -151,6 +151,12 @@ export default defineComponent({ ); const txs = await sendStaking({ transaction: transaction.serialize(), + recipientLabel: 'name' in activeValidator.value! ? activeValidator.value.name : 'Validator', + // @ts-expect-error Not typed yet in Hub + validatorImageUrl: 'logo' in activeValidator.value! + && !activeValidator.value.hasDefaultIcon + ? activeValidator.value.logo + : undefined, }).catch((error) => { throw new Error(error.data); }); @@ -188,6 +194,13 @@ export default defineComponent({ ); const txs = await sendStaking({ transaction: transaction.serialize(), + recipientLabel: 'name' in activeValidator.value! ? activeValidator.value.name : 'Validator', + // @ts-expect-error Not typed yet in Hub + validatorAddress: activeValidator.value!.address, + validatorImageUrl: ('logo' in activeValidator.value! + && !activeValidator.value.hasDefaultIcon) + ? activeValidator.value.logo + : undefined, }).catch((error) => { throw new Error(error.data); }); @@ -230,6 +243,13 @@ export default defineComponent({ ); const txs = await sendStaking({ transaction: transaction.serialize(), + recipientLabel: 'name' in activeValidator.value! ? activeValidator.value.name : 'Validator', + // @ts-expect-error Not typed yet in Hub + validatorAddress: activeValidator.value!.address, + validatorImageUrl: 'logo' in activeValidator.value! && !activeValidator.value.hasDefaultIcon + ? activeValidator.value.logo + : undefined, + amount: Math.abs(stakeDelta.value), }).catch((error) => { throw new Error(error.data); }); diff --git a/src/components/staking/StakingInfoPage.vue b/src/components/staking/StakingInfoPage.vue index 7715449cf..5e1b5f1c2 100644 --- a/src/components/staking/StakingInfoPage.vue +++ b/src/components/staking/StakingInfoPage.vue @@ -151,6 +151,7 @@ {{ $t('unstake everything') }} +