From a12b0383efc1644fadd75d06955663141c7b2e68 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 30 Dec 2022 06:12:29 -0800 Subject: [PATCH] Don't show weapon mod button if weapon has no id --- components/WeaponUnit/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/WeaponUnit/index.tsx b/components/WeaponUnit/index.tsx index 5a59c138..dc30dd4a 100644 --- a/components/WeaponUnit/index.tsx +++ b/components/WeaponUnit/index.tsx @@ -390,7 +390,10 @@ const WeaponUnit = (props: Props) => { const unitContent = (
- {props.editable && gridWeapon && canBeModified(gridWeapon) ? ( + {props.editable && + gridWeapon && + gridWeapon.id && + canBeModified(gridWeapon) ? (