Do not display payment method description if not present

This avoid an empty section with `Instructions` title empty
This commit is contained in:
Jean-Baptiste Bellet
2023-01-24 15:06:46 +01:00
parent f917027cb1
commit 64b7ccc2ba

View File

@@ -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