aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Chat.js')
-rw-r--r--vnext/src/ui/Chat.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js
index 6bcff837..93ed347e 100644
--- a/vnext/src/ui/Chat.js
+++ b/vnext/src/ui/Chat.js
@@ -13,12 +13,14 @@ import { useVisitor } from './VisitorContext';
import { Helmet } from 'react-helmet';
/**
- * @typedef {Object} ChatProps
+ *
+ * @typedef {object} ChatProps
* @property {EventSource} connection
*/
/**
* Chat component
+ *
* @param {ChatProps} props
*/
export default function Chat(props) {
@@ -48,7 +50,7 @@ export default function Chat(props) {
let onSend = (template) => {
pm(template.to.uname, template.body)
- .then(res => {
+ .then(() => {
loadChat(params.user);
}).catch(console.log);
};