From bdadd09cd1eb9ea66abb759616e7c3a1db3ac1ec Mon Sep 17 00:00:00 2001 From: AzenKain Date: Tue, 1 Jul 2025 09:57:06 +0700 Subject: [PATCH] fix bug technique --- src/components/avatarInfo/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/avatarInfo/index.tsx b/src/components/avatarInfo/index.tsx index 877bfbf..7724748 100644 --- a/src/components/avatarInfo/index.tsx +++ b/src/components/avatarInfo/index.tsx @@ -205,6 +205,7 @@ export default function AvatarInfo() { type="checkbox" checked={avatars[avatarSelected?.id || ""]?.techniques.length > 0} onChange={(e) => { + if (!Technique[avatarSelected?.id || ""] || Technique[avatarSelected?.id || ""]?.maze_buff.length === 0) return const techniques = e.target.checked ? Technique[avatarSelected?.id || ""]?.maze_buff : []; const newAvatar = { ...avatars[avatarSelected?.id || ""], techniques }; setAvatar(newAvatar);