From 7f4b2cc00a1476318d155e7e74818fc83f668079 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 30 Nov 2021 13:37:26 +0000 Subject: [PATCH] Tidy up checks on Enumerable objects --- app/views/split_checkout/payment/_stripe_sca.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/split_checkout/payment/_stripe_sca.html.haml b/app/views/split_checkout/payment/_stripe_sca.html.haml index 6b1715d215..b9eab088e5 100644 --- a/app/views/split_checkout/payment/_stripe_sca.html.haml +++ b/app/views/split_checkout/payment/_stripe_sca.html.haml @@ -4,7 +4,7 @@ angular.module('Darkswarm').value("stripeObject", Stripe("#{Stripe.publishable_key}")) %div{"data-controller": "stripe-cards"} - - if @saved_credit_cards.length > 0 + - if @saved_credit_cards.any? .checkout-input %label = t('split_checkout.step2.form.stripe.use_saved_card') @@ -13,7 +13,7 @@ { "data-action": "change->stripe-cards#onSelectCard", "data-stripe-cards-target": "select" } .checkout-input{"data-stripe-cards-target": "stripeelements"} - - if @saved_credit_cards.length == 0 + - if @saved_credit_cards.none? %label = t('split_checkout.step2.form.stripe.use_new_card') %stripe-elements