Skip to content

Commit 2460d0d

Browse files
committed
Approval return empty string if no choice
1 parent 6796650 commit 2460d0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/voting/approval.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default class ApprovalVoting {
3434
}
3535

3636
getChoiceString() {
37+
if (!this.selected) return '';
3738
return this.proposal.choices
3839
.filter((choice, i) => this.selected.includes(i + 1))
3940
.join(', ');

0 commit comments

Comments
 (0)