From 3cac1d03cc572d481df557b0986b60a4b482e30f Mon Sep 17 00:00:00 2001 From: Justin Edmund <383021+jedmund@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:46:30 -0700 Subject: [PATCH] Fix display of telumas in WeaponUnit --- components/weapon/WeaponUnit/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/weapon/WeaponUnit/index.tsx b/components/weapon/WeaponUnit/index.tsx index b3d2f818..d88cc8f7 100644 --- a/components/weapon/WeaponUnit/index.tsx +++ b/components/weapon/WeaponUnit/index.tsx @@ -266,10 +266,10 @@ const WeaponUnit = ({ const altText = weaponKey.name[locale] let filename = `${weaponKey.slug}` - if ( - index === 1 || - (index === 2 && parseInt(weaponKey.granblue_id) === 15008) - ) { + let elementalTelumas = [15008, 16001, 16002] + let granblueId = parseInt(weaponKey.granblue_id) + + if (elementalTelumas.includes(granblueId)) { filename += `-${gridWeapon.object.element}` }