mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
13007: fix specs
This commit is contained in:
@@ -81,7 +81,7 @@ class ProducerMailer < ApplicationMailer
|
||||
|
||||
@display_business_name = false
|
||||
line_items.map do |line_item|
|
||||
customer_code = line_item.order.customer.code
|
||||
customer_code = line_item.order.customer&.code
|
||||
@display_business_name = true if customer_code.present?
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user