Skip to content

Commit 1fe1dc6

Browse files
Fix attack history not updating properly.
1 parent d3f915f commit 1fe1dc6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

extension/changelog.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"date": false,
66
"logs": {
77
"features": [],
8-
"fixes": [{ "message": "Fix vault networth being shown twice with live networth.", "contributor": "DeKleineKobini" }],
8+
"fixes": [
9+
{ "message": "Fix vault networth being shown twice with live networth.", "contributor": "DeKleineKobini" },
10+
{ "message": "Fix attack history not updating properly.", "contributor": "DeKleineKobini" }
11+
],
912
"changes": [{ "message": "Completely disable the train button for disabled stats as extra measure.", "contributor": "DeKleineKobini" }],
1013
"removed": []
1114
}

extension/scripts/background.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ async function updateUserdata(forceUpdate = false) {
427427
.forEach((attack) => {
428428
if (attack.id > lastAttack) lastAttack = attack.id;
429429

430-
const enemyId = attack.attacker?.id === userdata.player_id ? attack.defender.id : attack.attacker.id;
430+
const enemyId = attack.attacker?.id === userdata.player_id ? attack.defender.id : attack.attacker?.id;
431431
if (!enemyId) return;
432432

433433
// Setup the data so there are no missing keys.

0 commit comments

Comments
 (0)