Skip to content

Commit

Permalink
Fix display of medications when all medications are stopped, addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Mar 12, 2019
1 parent 76d1474 commit 21514e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/medications/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
- if @medications.present?
- separator_found = false
- @medications.each_with_index do |medication, index|
- if medication.stopped? && index.positive? && !separator_found
- if medication.stopped? && !separator_found
- separator_found = true
.mt-5.mb-3
.mb-3{ class: index.positive? ? "mt-5" : nil }
%h2 Stopped Medications
= render "medications/card", medication: medication, actions: true
Expand Down

0 comments on commit 21514e0

Please sign in to comment.