Skip to content

Commit

Permalink
fix: ensure chosen option is correct on submit [LW-11906]
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guzei <[email protected]>
  • Loading branch information
DominikGuzei committed Nov 28, 2024
1 parent 97240f1 commit d1fde65
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit d1fde65

Please sign in to comment.