From 12d42a72bb8a140cf1384e2e5df682622a6e08f4 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Fri, 3 Nov 2023 13:36:33 +0100 Subject: [PATCH] Fix --- master/src/routes/hodler.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/master/src/routes/hodler.js b/master/src/routes/hodler.js index 272a58b..05c9706 100644 --- a/master/src/routes/hodler.js +++ b/master/src/routes/hodler.js @@ -497,6 +497,12 @@ const updateScore = async function (address) { }, newSR ); + if ( + !orchCache[address.toLowerCase()].leaderboardResults[instance.region] + ) { + orchCache[address.toLowerCase()].leaderboardResults[instance.region] = + {}; + } orchCache[address.toLowerCase()].leaderboardResults[ instance.region ].latestRTR = newRTR;