From ea6739d565aba185acfc9a01c305f6c697796bba Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Tue, 24 Aug 2021 11:46:50 -0700 Subject: [PATCH] guard against a nil value for `@order.user` --- app/views/split_checkout/_summary.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/split_checkout/_summary.html.haml b/app/views/split_checkout/_summary.html.haml index 320b9b1bf7..8be1ba1599 100644 --- a/app/views/split_checkout/_summary.html.haml +++ b/app/views/split_checkout/_summary.html.haml @@ -18,7 +18,7 @@ %span.summary-label = t("split_checkout.step1.your_details.email.label") %span.summary-value - = @order.user.email + = @order.user ? @order.user.email : "Change me" %div.summary %span.summary-label