Skip to content

Commit

Permalink
referralDefinition of null fix (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsorensen00 authored and dsarfati committed Nov 20, 2019
1 parent ee7d19a commit e28914d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-app/src/modules/referral/ReferralStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ReferralStore {
let sum = 0

this.referrals.forEach(x => {
if (x.referralDefinition) {
if (x && x.referralDefinition) {
sum += x.earnedBalance * x.referralDefinition.referrerBonus
}
})
Expand Down

0 comments on commit e28914d

Please sign in to comment.