Am trying to display icons based on the v-for and v-if conditions , but the icons are displayed multiple times , i need to display only the unique ones.
I tried v-if = 'index === 0' but instead this doesn't work
<div v-for="(bits, index) in inv.auction.Bits" :key="index">
<div v-if="bits.iswin == true && bits.userid == d.userid">
<b-tooltip label="mine" position="is-right">
<b-icon class="iswinclass" icon="thumb-up" type="is-success"></b-icon>
</b-tooltip>
</div>
<div v-if="bits.iswin == false && bits.userid == d.userid">
<b-tooltip label="mine" position="is-right">
<b-icon class="iswinclass" icon="thumb-down" type="is-danger"></b-icon>
</b-tooltip>
</div>
</div>
I want one thumb-up and one thumb-down to display if the condition matches instead multiple icons are displayed
inv.auction.Bits?