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