mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Don't POST if no choices set in poll
This commit is contained in:
parent
b7f80fb621
commit
45950da714
1 changed files with 1 additions and 0 deletions
|
@ -951,6 +951,7 @@ function Poll({
|
|||
choices.push(value);
|
||||
}
|
||||
});
|
||||
if (!choices.length) return;
|
||||
setUIState('loading');
|
||||
await votePoll(choices);
|
||||
setUIState('default');
|
||||
|
|
Loading…
Add table
Reference in a new issue