From 64b7ccc2ba9447f7b05d043d61ac89e188a24163 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 24 Jan 2023 15:06:46 +0100 Subject: [PATCH] Do not display payment method description if not present This avoid an empty section with `Instructions` title empty --- app/views/split_checkout/_summary.html.haml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/split_checkout/_summary.html.haml b/app/views/split_checkout/_summary.html.haml index 48de1f1235..f6ee230594 100644 --- a/app/views/split_checkout/_summary.html.haml +++ b/app/views/split_checkout/_summary.html.haml @@ -53,11 +53,12 @@ - payment_method = last_payment_method(@order) = payment_method&.name %em.fees=payment_or_shipping_price(payment_method, @order) - %div - .summary-subtitle - = t("split_checkout.step3.payment_method.instructions") + - if payment_method&.description.present? %div - = last_payment_method(@order)&.description + .summary-subtitle + = t("split_checkout.step3.payment_method.instructions") + %div + = last_payment_method(@order)&.description %div.checkout-substep