From 957896fd48d944e99785b5b915307f807fa38408 Mon Sep 17 00:00:00 2001 From: Dominik Guzei Date: Fri, 29 Nov 2024 10:29:35 +0100 Subject: [PATCH] fix: ensure chosen option is correct on submit [LW-11906] (#3245) Signed-off-by: Dominik Guzei --- .../voting/voting-governance/VotingPowerDelegation.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.tsx b/source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.tsx index 1fc0a07ea3..048f12936c 100644 --- a/source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.tsx +++ b/source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.tsx @@ -140,7 +140,10 @@ function VotingPowerDelegation({ }, ]; - const chosenOption = state.drepInputState.value || state.selectedVoteType; + const chosenOption = + state.selectedVoteType === 'drep' + ? state.drepInputState.value + : state.selectedVoteType; useEffect(() => { (async () => {