From 43705208d500a957c591aade1c91904cd379f39f Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Sun, 21 Apr 2024 19:13:46 +0200 Subject: [PATCH] fix: pets getting duplicated in the nw calculation --- src/stats/pets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/pets.js b/src/stats/pets.js index 2547f93f5d..875b630da2 100644 --- a/src/stats/pets.js +++ b/src/stats/pets.js @@ -430,7 +430,7 @@ export async function getPets(userProfile, calculated, profile) { const output = {}; // Get pets from profile - const pets = userProfile.pets_data?.pets ?? []; + const pets = _.clone(userProfile.pets_data?.pets ?? []); // Adds pets from inventories if (calculated.items?.pets !== undefined) {