From 36ddc6e50614a081922f4f622c817484214b234e Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 1 Feb 2022 14:32:13 -0800 Subject: [PATCH] Breaking out the imageClickHandler was breaking things so I reverted --- components/WeaponUnit/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/WeaponUnit/index.tsx b/components/WeaponUnit/index.tsx index bf342704..fc69e77d 100644 --- a/components/WeaponUnit/index.tsx +++ b/components/WeaponUnit/index.tsx @@ -52,14 +52,10 @@ const WeaponUnit = (props: Props) => { props.updateUncap(props.gridWeapon.id, uncap) } - function imageClickHandler() { - if (props.editable) props.onClick - } - return (
-
+
{} }> {weapon?.name.en} { (props.editable) ? : '' }