fix: new mythic items

This commit is contained in:
Valentin Kaelin 2023-09-14 18:53:43 +02:00
parent 8fac5cd58b
commit f156bddea5
3 changed files with 3 additions and 1 deletions

View file

@ -72,7 +72,7 @@ export default {
methods: {
isMythic(item) {
return item && item.image.includes('t4')
return item && item.isMythic
},
itemLink(item) {
if (!item) {

View file

@ -66,6 +66,7 @@ export default abstract class MatchSerializer {
name: item.name,
description: item.description,
price: item.priceTotal,
isMythic: item.description.includes('rarityMythic'),
})
}
return items

View file

@ -58,6 +58,7 @@ export interface SerializedMatchItem {
image: string
name: string
price: number
isMythic: boolean
}
export interface SerializedMatchPerks {