diff --git a/examples/chat/src/index.ts b/examples/chat/src/index.ts index d2d2888a..678da38b 100644 --- a/examples/chat/src/index.ts +++ b/examples/chat/src/index.ts @@ -103,7 +103,7 @@ async function main() { object["chat"] = Object.assign(new GSet(new Set()), object["chat"]); chatCRO = Object.assign(new Chat(node.networkNode.peerId), object); - (document.getElementById("chatId")).innerHTML = objectId; + (document.getElementById("chatId")).innerHTML = chatCRO.getObjectId(); render(); } catch (e) { console.error("Error while connecting to the CRO ", objectId, e);