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) }; }