Minor fixes

This commit is contained in:
chalith
2024-04-08 18:00:45 +05:30
parent 21dbeedc01
commit bad38b10e2

View File

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