aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/UserInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r--vnext/src/ui/UserInfo.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js
index bcf5c20e..91e3b5cf 100644
--- a/vnext/src/ui/UserInfo.js
+++ b/vnext/src/ui/UserInfo.js
@@ -13,7 +13,8 @@ let isMounted;
/**
* User info component
- * @param {{uname: string, onUpdate?: function, children?: import('react').ReactElement}} props
+ *
+ * @param {{uname: string, onUpdate?: Function, children?: import('react').ReactElement}} props
*/
export default function UserInfo({ uname, onUpdate, children }) {
const [user, setUser] = useState({
@@ -66,6 +67,7 @@ export default function UserInfo({ uname, onUpdate, children }) {
/**
* User summary component
+ *
* @param {{user: import('../api').User}} props
*/
function Summary({ user }) {
@@ -90,6 +92,7 @@ const UserSummary = memo(Summary);
/**
* Link to user
+ *
* @param {{ user: import('../api').User}} props
*/
export function UserLink(props) {
@@ -107,7 +110,7 @@ export function UserLink(props) {
uri: userRef.current.uri
});
}
- }).catch(reason => {
+ }).catch(() => {
setUser({
uid: 0,
uname: userRef.current.uri,