diff --git a/src/components/connect-dialog.tsx b/src/components/connect-dialog.tsx
index 4f87739..74468a3 100644
--- a/src/components/connect-dialog.tsx
+++ b/src/components/connect-dialog.tsx
@@ -147,6 +147,9 @@ export function ConnectDialog({
LiveblocksProvider (coming soon)
+
+ HocuspocusProvider (coming soon)
+
diff --git a/src/state/ydoc.ts b/src/state/ydoc.ts
index 42ea992..6d97431 100644
--- a/src/state/ydoc.ts
+++ b/src/state/ydoc.ts
@@ -19,8 +19,8 @@ function connectStatusIndicator(yDoc: Y.Doc, set: Setter) {
});
yDoc.on("subdocs", ({ added }) => {
- for (const doc of added) {
- doc.on("beforeTransaction", (tr) => {
+ for (const subDoc of added) {
+ subDoc.on("beforeTransaction", (tr) => {
const origin = tr.origin;
if (origin === null || origin instanceof Y.UndoManager) {
set(uploadAtom, (prev) => prev + 1);