I have a dropdown that is showing credit card options by their label. The value of the label field is four asteriks and the last 4 digits of the card like this: "****4241".
<v-select
:value="this.cards[0]"
:options="this.cards">
{{option.label}}
</v-select>
The problem is that if 2 cards happen to end in the same 4 numbers, it won't show both of them in the dropdown so I am solving this right now by prepending a an index value on the label in the array.
cards = [{label: '1: ****4242'}, {label: '2: ****4242'}]
I'd like to get rid of this hack though if possible.