aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/App.js')
-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>