Skip to content

Commit

Permalink
quests: fix quests abandoned count
Browse files Browse the repository at this point in the history
  • Loading branch information
Beelzebob6666 committed Mar 15, 2023
1 parent 6ea60d8 commit ba5a187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/web/quests/js/quests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

// Quest is aborted?
FoEproxy.addHandler('QuestService', 'getUpdates', (data, postData) => {
if(postData[0]['requestClass'] === 'QuestService' && postData[0]['requestMethod'] === 'abortQuest'){
FoEproxy.addRequestHandler('QuestService', 'abortQuest', (postData) => {
if(postData['requestClass'] === 'QuestService' && postData['requestMethod'] === 'abortQuest'){
Quests.UpdateCounter();
}
});
Expand Down

0 comments on commit ba5a187

Please sign in to comment.