Skip to content

Commit

Permalink
Merge pull request #312 from SquareTable/311-voting-on-polls-does-not…
Browse files Browse the repository at this point in the history
…-work

Fixed voting on polls not working
  • Loading branch information
Sebastian-Webster authored Jan 1, 2024
2 parents 7cdb7fb + 709cebd commit 97cbcf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Posts/PollWithVotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ class PollWithVotes extends PollClass {
}

runIfAuthenticated = (func) => {
return () => {
return (...params) => {
if (this.props.userId === 'SSGUEST' || !this.props.userId) {
this.props.navigation.navigate('ModalLoginScreen', {modal: true})
} else {
func()
func(...params)
}
}
}
Expand Down

0 comments on commit 97cbcf1

Please sign in to comment.