✅ JSON parse errors — Replaced JSON.parse() with repairJSON() in desktop.js and mobile.js for infoBox/userStats parsing. Handles malformed JSON with trailing content.
✅ Empty equipment tab — Added defensive initialization in renderEquipment() (defaults showEquipment to true, ensures equipment data structure exists). Added explicit render call during init.
Found the root cause: the equipment section has display: none in CSS and updateSectionVisibility() (the function that calls .show()) was never called during init. Added it. Pushed fix to PR #21.
Found the root cause: the equipment section has `display: none` in CSS and `updateSectionVisibility()` (the function that calls `.show()`) was never called during init. Added it. Pushed fix to PR #21.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
After the recent Changes for enhancing code quality and performance, we get these errors in the console after loading it in:
Also, the Equipment tab is empty. Can't edit, add, delete or even see equipment.
I'll work on this. Give me a moment to inspect the codebase and prepare a fix.
Both issues fixed:
✅ JSON parse errors — Replaced
JSON.parse()withrepairJSON()in desktop.js and mobile.js for infoBox/userStats parsing. Handles malformed JSON with trailing content.✅ Empty equipment tab — Added defensive initialization in
renderEquipment()(defaultsshowEquipmentto true, ensures equipment data structure exists). Added explicit render call during init.Tests: 78/78 passed.
PR: #21
Found the root cause: the equipment section has
display: nonein CSS andupdateSectionVisibility()(the function that calls.show()) was never called during init. Added it. Pushed fix to PR #21.