Skip to content

Commit

Permalink
Fixes PR reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroradusky committed Apr 18, 2024
1 parent 9441892 commit 3979d8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/documents/label_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def render_sample_details(sample)
text_lines [
"I.N. #{sample.isolate_name}".truncate(22),
"I.M. #{sample.inactivation_method}".truncate(22),
"P.D. #{sample.blinded_attribute?(:date_produced) ? sample.date_produced : sample.date_produced.strftime("%m/%d/%Y")}",
"P.D. #{sample.blinded_attribute(:date_produced) { sample.date_produced.strftime("%m/%d/%Y") }}",
], leading: -0.5
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/boxes/inventory.csv.csvbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ csv << [
sample.virus_lineage,
sample.replicate,
sample.concentration,
sample.blinded_attribute?(:date_produced) ? sample.date_produced : sample.date_produced.to_date,
sample.blinded_attribute(:date_produced) { sample.date_produced.to_date },
sample.inactivation_method,
sample.media,
]
Expand Down
2 changes: 1 addition & 1 deletion app/views/samples/_barcode_card.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.code
%strong
Production Date:
#{@sample_form ? @sample_form.date_produced : @sample_form.date_produced.try{ strftime("%m/%d/%Y")}}
#{@sample_form.blinded_attribute(:date_produced){ @sample_form.date_produced.try { strftime("%m/%d/%Y") } } }
.logo
= image_tag 'cdx-logo-bw.png'
.label https://cdx.io
Expand Down

0 comments on commit 3979d8a

Please sign in to comment.