🐛 Keep selected participant id after update (#1171)

This commit is contained in:
Luke Vella 2024-06-20 11:17:40 +01:00 committed by GitHub
parent 3758daf301
commit 5081af464c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,7 +124,7 @@ export const VotingForm = ({ children }: React.PropsWithChildren) => {
form.reset({
mode: "view",
participantId: undefined,
participantId: data.participantId,
votes: options.map((option) => ({
optionId: option.id,
})),