From 7b14a8f3faf7672f0aefbf93d5c37f62a169b535 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 6 Nov 2022 03:30:40 +0300 Subject: Cleanup ESLint warnings --- vnext/src/ui/UserInfo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vnext/src/ui/UserInfo.js') 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, -- cgit v1.2.3