Fixed invalid check inside getBonusValueFromProfile()
This commit is contained in:
parent
8d0dfc1cf8
commit
77c98a4cd4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user