Include referral points in leaderboard calculation
Solution
Calculated referral points on the fly when leaderboard rankings are requested
QA
[x] Unit test
Other changes (e.g. bug fixes, UI tweaks, small refactors)
Improved userRanking (getLeaderboard controller) object typing by using Array.find to return an owner ranking thereby preserving UserRanking type definition
Problem
Include referral points in leaderboard calculation
Solution
Calculated referral points on the fly when leaderboard rankings are requested
QA
Other changes (e.g. bug fixes, UI tweaks, small refactors)
Improved
userRanking
(getLeaderboard
controller) object typing by usingArray.find
to return an owner ranking thereby preservingUserRanking
type definition