Skip to content

Commit 9bed0f6

Browse files
authored
Merge pull request #618 from maebeale/fix-bug-in-listing
Remove final & operator so all nils -> 0.0
2 parents fc4998f + f9eabb7 commit 9bed0f6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [Unreleased]
4+
### Bugfixes
5+
* Remove final & operator so all nils -> 0.0 #618
6+
37
## [0.2.7] - 2020-07-30
48
### Enhancements
59
* Display inexhaustible icon on Contributions, Matches, Respond #601

app/models/listing.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def name
5353
end
5454

5555
def name_and_match_history
56-
"(#{type}-#{all_tags_to_s.upcase}#{" ***INEXHAUSTIBLE*** " if inexhaustible?}) #{person.match_history}. (#{person.name}#{" --- $" + person.monthly_donation_amount_max.to_s + "/mo left" if person.monthly_donation_amount_max&.to_f > 0.0})"
56+
"(#{type}-#{all_tags_to_s.upcase}#{" ***INEXHAUSTIBLE*** " if inexhaustible?}) #{
57+
person.match_history}. (#{person.name}#{" --- $" +
58+
person.monthly_donation_amount_max.to_s + "/mo left" if person&.monthly_donation_amount_max.to_f > 0.0})"
5759
end
5860

5961
def status

0 commit comments

Comments
 (0)