From 59c3a41e4efc5224b33a58bf7ea2ad988f6c4a10 Mon Sep 17 00:00:00 2001 From: Artemy Date: Wed, 5 Apr 2023 14:34:52 +0300 Subject: [PATCH] fix: sync password --- src/pages/settings.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings.jsx b/src/pages/settings.jsx index bf84239..2b3c20b 100644 --- a/src/pages/settings.jsx +++ b/src/pages/settings.jsx @@ -71,7 +71,7 @@ function Settings() { label={locals.BroadcastSync} onChange={(e) => { if (e.target.checked) { - socket.emit("joinRoom", settings.syncPassword); + socket.emit("joinRoom", settings.SyncPassword); } else { socket.emit("leaveRoom"); } @@ -98,7 +98,7 @@ function Settings() { NoteText: localStorage.getItem("NoteText"), NoteName: localStorage.getItem("NoteName"), }, - room: settings.syncPassword, + room: settings.SyncPassword, }); }} />