Skip to content

Commit 0663c61

Browse files
committed
fix: broken buyPacks
1 parent d0fe2cd commit 0663c61

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# UnderScript Changelog
22

3+
## Version 0.58.2 (2024-05-29)
4+
1. Fixed broken pack buying API
5+
1. Added more cases where chat will reconnect
6+
37
## Version 0.58.1 (2024-05-24)
48
1. Re-enabled smart disenchant
59
- This is still at your own risk, and you must manually enable it in settings.

src/base/store/buyPacks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ wrap(() => {
4848
types.forEach((type) => {
4949
['', 'Ucp'].forEach((cost) => {
5050
const el = document.querySelector(`#btn${cost}${type}Add`);
51+
if (!el) return;
5152
el.onclick = null;
5253
el.addEventListener('click', (e) => {
5354
const price = type === 'UTY' ? 200 : 100;

0 commit comments

Comments
 (0)