Skip to content

Commit

Permalink
Merge pull request #31 from rarimo/fix/levels
Browse files Browse the repository at this point in the history
Fix bag with level accruing, because map can be indexed by for in dif…
  • Loading branch information
Zaptoss authored Jun 20, 2024
2 parents 9a4103b + a875772 commit ef0d78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/levels.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (l Levels) LvlUp(currentLevel int, totalAmount int64) (refCoundToAdd int, n
continue
}
if int64(v.Threshold) > totalAmount {
break
continue
}

refCoundToAdd += v.Referrals
Expand Down

0 comments on commit ef0d78d

Please sign in to comment.