Fix missing reward display

This commit is contained in:
Dillon
2023-07-17 23:08:17 +08:00
parent c7927847c4
commit ffacfa771e
@@ -5,8 +5,8 @@
<p class="card-text">{{ item.description }}</p>
<p v-if="item.voucher && item.user_rewards.voucher.is_redeemed" class="text-secondary"> {{ item.voucher.code }}</p>
<p v-else-if="item.voucher" class="text-primary"> {{ item.voucher.code }}</p>
<p v-if="item.voucher.type == 'AMOUNT'">RM{{ item.voucher.value/100 }} Discount</p>
<p v-if="item.voucher.type == 'PERCENT'">{{ item.voucher.value }}% Discount</p>
<p v-if="item.voucher && item.voucher.type == 'AMOUNT'">RM{{ item.voucher.value/100 }} Discount</p>
<p v-if="item.voucher && item.voucher.type == 'PERCENT'">{{ item.voucher.value }}% Discount</p>
</div>
<div class="card-footer text-muted">
<p v-if="item.user_rewards && item.user_rewards.voucher.is_redeemed">