aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/database.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/database.js b/build/database.js
index f397c3e..b40d30c 100644
--- a/build/database.js
+++ b/build/database.js
@@ -207,8 +207,10 @@ async function getApplicableAttributes(member) {
for (const [leaderboard, attributeValue] of Object.entries(leaderboardAttributes)) {
const requirement = await getMemberLeaderboardRequirement(leaderboard);
const leaderboardReversed = isLeaderboardReversed(leaderboard);
- if (!requirement || leaderboardReversed ? attributeValue < requirement : attributeValue > requirement)
+ if ((requirement === null)
+ || (leaderboardReversed ? attributeValue < requirement : attributeValue > requirement)) {
applicableAttributes[leaderboard] = attributeValue;
+ }
}
return applicableAttributes;
}