aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {