diff --git a/project/src/helpers/ProfileHelper.ts b/project/src/helpers/ProfileHelper.ts index 53014cfa..13bb1fb3 100644 --- a/project/src/helpers/ProfileHelper.ts +++ b/project/src/helpers/ProfileHelper.ts @@ -509,8 +509,7 @@ export class ProfileHelper { */ public getBonusValueFromProfile(pmcProfile: IPmcData, desiredBonus: BonusType): number { const bonuses = pmcProfile.Bonuses.filter((bonus) => bonus.type === desiredBonus); - if (!bonuses) - { + if (bonuses.length === 0) { return 0; }