Skip to content

Commit

Permalink
explicitly show invalid mandate
Browse files Browse the repository at this point in the history
  • Loading branch information
morfe2 authored Dec 9, 2024
1 parent 63cf650 commit b150929
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/runtime/components/MollieCreditCardMandates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ const changeMandate = async () => {
class="mollie-credit-card-mandates__radio-styled-checked"
/>
</span>
{{ mandate.details.cardLabel }} - {{ mandate.details.cardHolder }} - ****
{{ mandate.details.cardNumber }}
{{ mandate.details.cardLabel && mandate.details.cardHolder && mandate.details.cardNumber
? `${mandate.details.cardLabel} - ${mandate.details.cardHolder} - **** ${mandate.details.cardNumber}`
: 'Invalid'
}}
</label>
</div>

Expand Down

0 comments on commit b150929

Please sign in to comment.