Fix display of telumas in WeaponUnit

This commit is contained in:
Justin Edmund 2024-03-13 19:46:30 -07:00
parent c43e36e525
commit 3cac1d03cc

View file

@ -266,10 +266,10 @@ const WeaponUnit = ({
const altText = weaponKey.name[locale] const altText = weaponKey.name[locale]
let filename = `${weaponKey.slug}` let filename = `${weaponKey.slug}`
if ( let elementalTelumas = [15008, 16001, 16002]
index === 1 || let granblueId = parseInt(weaponKey.granblue_id)
(index === 2 && parseInt(weaponKey.granblue_id) === 15008)
) { if (elementalTelumas.includes(granblueId)) {
filename += `-${gridWeapon.object.element}` filename += `-${gridWeapon.object.element}`
} }