Skip to content

Commit

Permalink
Merge pull request #11 from morfe2/show-invalid-mandate
Browse files Browse the repository at this point in the history
explicitly show invalid mandate
  • Loading branch information
fjbender authored Dec 9, 2024
2 parents 63cf650 + b150929 commit 837b382
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 837b382

Please sign in to comment.