From 431bd603c143b93cfbfcc7beb81408755dbed0ce Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 8 Nov 2022 00:17:14 +0300 Subject: ESLint: switch to `@typescript-eslint/parser` * JS version of the `no-floating-promise` rule sucks :( --- vnext/src/App.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/App.js b/vnext/src/App.js index 55d85edc..813fd263 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -50,7 +50,7 @@ export default function App({ footer }) { // refresh server visitor state (unread counters) me().then(visitor => { setVisitor(visitor); - }); + }).catch(console.error); }; const [hash, setHash] = useState(cookie.hash); @@ -95,7 +95,7 @@ export default function App({ footer }) { const getTrends = async () => { setAllTrends(await trends()); }; - getTrends(); + getTrends().catch(console.error); }, []); /** @@ -139,7 +139,7 @@ export default function App({ footer }) { Settings : - + Login -- cgit v1.2.3