aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-11-14 16:54:32 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit9fbc20d012d0f7bef9c10ec7fff586d5ef2022b1 (patch)
treef76ca38cd210dcecb7029c2babd393927b9d4929 /vnext/src
parent6ecde9590b68189ca96fd0f2afccbd60d44f5950 (diff)
Fix anonymous Thread view
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/App.js2
-rw-r--r--vnext/src/ui/Thread.js2
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) {