Skip to content

Commit 3ffef40

Browse files
authored
Fix to dashboard display issues that were pointed out by a stakeholder. (#1643)
1 parent e773a81 commit 3ffef40

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/views/dashboard/index.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@
186186
<div class="position-relative mb-4">
187187
<div class="box-body text-center float-center">
188188
<%= new_button_to new_donation_path, {text: "New Donation"} %>
189-
<h3 class="text-center"><%= dollar_value(total_received_money_donations) %> items
189+
<h3 class="text-center"><%= total_received_donations %> items
190190
received <%= @selected_date_range_label %></h3>
191-
<h4 class="text-center">$<%= total_received_money_donations %>
191+
<h4 class="text-center"><%= dollar_value(total_received_money_donations) %>
192192
raised <%= @selected_date_range_label %></h4>
193193
<div class="box-body">
194194
<h4>Recent Donations</h4>
@@ -217,9 +217,9 @@
217217
<div class="card-body">
218218
<div class="position-relative mb-4">
219219
<div class="box-body text-center float-center">
220-
<h3 class="text-center"><%= total_received_donations %> items
220+
<h3 class="text-center"><%= total_received_from_diaper_drives %> items
221221
received <%= @selected_date_range_label %></h3>
222-
<h4 class="text-center">$<%= total_received_money_donations %>
222+
<h4 class="text-center"><%= dollar_value(total_received_money_donations) %>
223223
raised <%= @selected_date_range_label %></h4>
224224
<div class="box-body">
225225
<h4>Recent Donations from Diaper Drives</h4>

spec/rails_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
Sidekiq::Testing.fake! # fake is the default mode
1717

18+
SimpleCov.start
19+
1820
# Add additional requires below this line. Rails is not loaded until this point!
1921

2022
# Requires supporting ruby files with custom matchers and macros, etc, in

0 commit comments

Comments
 (0)