From 241a6d8128104b1c4aff30ca2f590d9ec39b52cf Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Mon, 2 Dec 2024 13:24:55 +0500 Subject: [PATCH] 13007: fix specs --- app/mailers/producer_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/producer_mailer.rb b/app/mailers/producer_mailer.rb index 7bb7dbccb3..0f357aec0d 100644 --- a/app/mailers/producer_mailer.rb +++ b/app/mailers/producer_mailer.rb @@ -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? {