app/models/decidim/proposals/proposal.rb in decidim-proposals-0.10.0 vs app/models/decidim/proposals/proposal.rb in decidim-proposals-0.10.1

- old
+ new

@@ -107,10 +107,10 @@ # Public: The maximum amount of votes allowed for this proposal. # # Returns an Integer with the maximum amount of votes, nil otherwise. def maximum_votes - maximum_votes = feature.settings.threshold_per_proposal + maximum_votes = feature.settings.threshold_per_proposal || 0 return nil if maximum_votes.zero? maximum_votes end