diff --git a/docs/assets/how-to-guides/write-simple-dapp/poll-1.gno b/docs/assets/how-to-guides/write-simple-dapp/poll-1.gno index bf2a64743d0..98b0ae4ed7a 100644 --- a/docs/assets/how-to-guides/write-simple-dapp/poll-1.gno +++ b/docs/assets/how-to-guides/write-simple-dapp/poll-1.gno @@ -64,6 +64,8 @@ func (p Poll) VoteCount() (int, int) { if vote == true { yay = yay + 1 } + + return false }) return yay, p.Voters().Size() - yay } diff --git a/docs/how-to-guides/write-simple-dapp.md b/docs/how-to-guides/write-simple-dapp.md index a46d6688fa9..851320b2a61 100644 --- a/docs/how-to-guides/write-simple-dapp.md +++ b/docs/how-to-guides/write-simple-dapp.md @@ -94,6 +94,8 @@ func (p Poll) VoteCount() (int, int) { if vote == true { yay = yay + 1 } + + return false }) return yay, p.Voters().Size() - yay }