From 5270fb47c292959ecc9bd556fd8a7a9b329927b7 Mon Sep 17 00:00:00 2001 From: NoLifeKing Date: Fri, 8 Apr 2022 09:51:50 +0200 Subject: [PATCH] fix: Try to load activities all the time. Add event for partially loaded activities (to update dashboard live as it updates) --- src/scripts/destiny2/apiClient.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/destiny2/apiClient.tsx b/src/scripts/destiny2/apiClient.tsx index dd43524..2584d79 100644 --- a/src/scripts/destiny2/apiClient.tsx +++ b/src/scripts/destiny2/apiClient.tsx @@ -909,10 +909,10 @@ export class DestinyApiClient { characterId: characterId, activity: activity, }); - savedAmount++; } + savedAmount++; } - + eventEmitter.emit("character-history-partial-loaded"); log("CHARACTER-HISTORY", `Saved ${savedAmount} activities`); }