diff --git a/src/components/staking/StakingGraphPage.vue b/src/components/staking/StakingGraphPage.vue index c5453a284..277e2b8c9 100644 --- a/src/components/staking/StakingGraphPage.vue +++ b/src/components/staking/StakingGraphPage.vue @@ -148,6 +148,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); }); @@ -185,6 +191,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); }); @@ -227,6 +240,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 d498f84b0..3740ae118 100644 --- a/src/components/staking/StakingInfoPage.vue +++ b/src/components/staking/StakingInfoPage.vue @@ -151,6 +151,7 @@ > {{ $t('unstake everything') }} +