From 7525b56f4a2243512f5548e43096bf71f8fbd10b Mon Sep 17 00:00:00 2001 From: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com> Date: Thu, 27 Jul 2023 08:58:04 -0700 Subject: [PATCH] fix: validator not displayed in stake messages (#119) --- src/components/organisms/proposal-summary.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/organisms/proposal-summary.tsx b/src/components/organisms/proposal-summary.tsx index a6e4b20..1a7f3a1 100644 --- a/src/components/organisms/proposal-summary.tsx +++ b/src/components/organisms/proposal-summary.tsx @@ -136,6 +136,7 @@ function renderMessage(msg: any, groupPolicyAddress: string) { stakeType: 'delegate', amount: msg.value['amount']['amount'], denom: msg.value['amount']['denom'], + validator: msg.value['validator_address'], } as unknown as ProposalStakeFormValues } /> @@ -150,6 +151,8 @@ function renderMessage(msg: any, groupPolicyAddress: string) { stakeType: 'redelegate', amount: msg.value['amount']['amount'], denom: msg.value['amount']['denom'], + toValidator: msg.value['validator_dst_address'], + fromValidator: msg.value['validator_src_address'], } as unknown as ProposalStakeFormValues } /> @@ -164,6 +167,7 @@ function renderMessage(msg: any, groupPolicyAddress: string) { stakeType: 'undelegate', amount: msg.value['amount']['amount'], denom: msg.value['amount']['denom'], + validator: msg.value['validator_address'], } as unknown as ProposalStakeFormValues } />