aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-08 00:17:14 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit431bd603c143b93cfbfcc7beb81408755dbed0ce (patch)
tree581fa38ed3c563aab39bf63a2589a1a100fc5cec /vnext/src
parentabe8e7bc26906929914834dbaf38a793bcbb4f78 (diff)
ESLint: switch to `@typescript-eslint/parser`
* JS version of the `no-floating-promise` rule sucks :(
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/App.js6
1 files changed, 3 insertions, 3 deletions
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 }) {
<span className="desktop">Settings</span>
</Link>
</> :
- <Link to={{ pathname: '/login'}}>
+ <Link to={{ pathname: '/login' }}>
<Icon name="ei-user" size="s" />
<span className="desktop">Login</span>
</Link>