Skip to content

Commit

Permalink
adhocracy4/polls: hide button to go back to poll after voting for unr…
Browse files Browse the repository at this point in the history
…egistered users
  • Loading branch information
goapunk authored and m4ra committed Nov 13, 2024
1 parent 9cafe0b commit cb21e2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adhocracy4/polls/static/PollDetail/PollQuestions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,10 @@ class PollQuestions extends React.Component {
<PollResults key={idx} question={question} />
))}
<Alert onClick={() => this.removeAlert()} {...this.state.alert} />
<div className="poll">
{this.state.hasUserVote ? this.linkChangeVote : this.linkToPoll}
</div>
{this.state.questions.length > 0 && this.state.questions[0].authenticate &&
<div className="poll">
{this.state.hasUserVote ? this.linkChangeVote : this.linkToPoll}
</div>}
</div>
)
: (
Expand Down

0 comments on commit cb21e2e

Please sign in to comment.