Skip to content

Commit d125ab1

Browse files
committed
Fix case-insensitive PayPal comparison in hub billing template
1 parent 84a15e3 commit d125ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/hub-billing/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ <h1 class="font-h1">{{ .Title }}</h1>
135135
</dt>
136136
<dd>
137137
<template x-if="subscriptionData.details.payment_information">
138-
<div x-show="subscriptionData.details.payment_information.payment_method == 'card'">
138+
<div x-show="subscriptionData.details.payment_information.payment_method.toLowerCase() == 'card'">
139139
<p class="font-bold text-2xl md:text-3xl lg:text-4xl">
140140
{{ i18n "hub_billing_manage_payment_info_credit_card" . }}
141141
</p>
142142
<p class="text-xs text-gray-600 mt-1">
143143
{{ i18n "hub_billing_manage_payment_info_credit_card_last_four_digits_description" . }}: <span x-text="subscriptionData.details.payment_information.last_four_digits"></span>
144144
</p>
145145
</div>
146-
<p x-show="subscriptionData.details.payment_information.payment_method == 'paypal'" class="font-bold text-2xl md:text-3xl lg:text-4xl">
146+
<p x-show="subscriptionData.details.payment_information.payment_method.toLowerCase() == 'paypal'" class="font-bold text-2xl md:text-3xl lg:text-4xl">
147147
{{ i18n "hub_billing_manage_payment_info_paypal" . }}
148148
</p>
149149
</template>

0 commit comments

Comments
 (0)