FIX: Fix bug technique
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 49s

This commit is contained in:
2026-03-18 12:51:24 +07:00
parent 8b79c3bb12
commit ce0e2265ba
3 changed files with 3 additions and 3 deletions

View File

@@ -200,9 +200,9 @@ export default function AvatarInfo() {
</div>
<input
type="checkbox"
checked={(!avatarSelected || avatarSelected?.MazeBuff?.length > 0)}
checked={avatars[avatarSelected?.ID.toString() || ""]?.techniques.length > 0 }
onChange={(e) => {
if (!avatarSelected || avatarSelected?.MazeBuff?.length > 0) return
if (!avatarSelected || avatarSelected?.MazeBuff?.length == 0) return
const techniques = e.target.checked ? avatarSelected?.MazeBuff : [];
const newAvatar = { ...avatars[avatarSelected?.ID.toString() || ""], techniques: techniques };
setAvatar(newAvatar);