From bad38b10e24ea705b84e258bb693f1cafe46de3d Mon Sep 17 00:00:00 2001 From: chalith Date: Mon, 8 Apr 2024 18:00:45 +0530 Subject: [PATCH] Minor fixes --- reputationd/lib/reputationd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reputationd/lib/reputationd.js b/reputationd/lib/reputationd.js index 5c55a3c..6fcbfb2 100644 --- a/reputationd/lib/reputationd.js +++ b/reputationd/lib/reputationd.js @@ -312,11 +312,11 @@ class ReputationD { async #getUniverseInfo() { const repInfo = await this.hostClient.getReputationInfo(); - if (!repInfo || !repInfo.orderedId) + if (!repInfo || !('orderedId' in repInfo)) return null; return { - index: repInfo.orderedId / this.#universeSize + index: Math.floor(repInfo.orderedId / this.#universeSize) }; }