aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/UserInfo.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-08 00:17:14 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commitabe8e7bc26906929914834dbaf38a793bcbb4f78 (patch)
tree677b41bc2b3d2f78b26392dbf4bb7d7dddb603bb /vnext/src/ui/UserInfo.js
parentee4f45f13f652d8807c2617f24aa167243076b5e (diff)
ESLint: switch to `@typescript-eslint/parser`
* JS version of the `no-floating-promise` rule sucks :(
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r--vnext/src/ui/UserInfo.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js
index 6a394b86..5bcc2507 100644
--- a/vnext/src/ui/UserInfo.js
+++ b/vnext/src/ui/UserInfo.js
@@ -26,7 +26,7 @@ export default function UserInfo({ uname, onUpdate, children }) {
onUpdate && onUpdate(response.data);
setUser(response.data);
}
- });
+ }).catch(console.log);
return () => {
isMounted = false;
};
@@ -79,7 +79,6 @@ function Summary({ user }) {
return (
<div className="msg-summary">
{presentItems.length > 0 && presentItems.reduce((prev, curr) =>
- // @ts-ignore
[prev, ' ', curr])}
</div>
);