Skip to content

Commit 957896f

Browse files
authored
fix: ensure chosen option is correct on submit [LW-11906] (#3245)
Signed-off-by: Dominik Guzei <dominik.guzei@gmail.com>
1 parent 97240f1 commit 957896f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ function VotingPowerDelegation({
140140
},
141141
];
142142

143-
const chosenOption = state.drepInputState.value || state.selectedVoteType;
143+
const chosenOption =
144+
state.selectedVoteType === 'drep'
145+
? state.drepInputState.value
146+
: state.selectedVoteType;
144147

145148
useEffect(() => {
146149
(async () => {

0 commit comments

Comments
 (0)