feat: show next season pass on listings
This commit is contained in:
@@ -158,6 +158,10 @@ export function getListingChips(item: Listing): ListingDisplayChip[] {
|
||||
if (readAssetString(item, 'all_hero') === '是') {
|
||||
chips.push({ label: '全英雄', value: '是' })
|
||||
}
|
||||
const nextSeasonPass = readAssetString(item, 'next_season_pass')
|
||||
if (nextSeasonPass === '购买' || nextSeasonPass === '不购买') {
|
||||
chips.push({ label: '下赛季通行证', value: nextSeasonPass })
|
||||
}
|
||||
return chips.filter(chip => chip.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user