Skip to content

Commit

Permalink
Merge pull request #12 from morfe2/show-invalid-mandate-2
Browse files Browse the repository at this point in the history
explicitly show invalid mandate #2
  • Loading branch information
fjbender authored Jan 9, 2025
2 parents 490f377 + 81f2a49 commit 51e6bd1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/runtime/components/MollieCreditCardRemoveMandates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ const removeMandate = async (id: string) => {
class="mollie-credit-card-mandates-remove__item"
>
<div class="mollie-credit-card-mandates-remove__item-text">
{{ 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'
}}
</div>

<button
Expand Down

0 comments on commit 51e6bd1

Please sign in to comment.