From 9fbc20d012d0f7bef9c10ec7fff586d5ef2022b1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 14 Nov 2019 16:54:32 +0300 Subject: Fix anonymous Thread view --- vnext/src/App.js | 2 +- vnext/src/ui/Thread.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vnext/src/App.js b/vnext/src/App.js index 3479ad4f..f8788972 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -98,7 +98,7 @@ export default function App() { }, [x, y, setScrollState]); const [hash, setHash] = useState(cookie.load('hash')); - const [eventSource, setEventSource] = /** @param EventSource? */ useState(null); + const [eventSource, setEventSource] = /** @param EventSource? */ useState({}); useEffect(() => { let es; diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index 4f53c4af..ec8a1eda 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -120,7 +120,7 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC /** * @param {{ visitor: import('../api').SecureUser - connection: EventSource + connection?: EventSource }} props */ export default function Thread(props) { -- cgit v1.2.3