Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:zap: Removes obsolete always-true null check

Alicia Sykescf002116f8a2
diff --git a/src/router.js b/src/router.js
index 6606d85d..904eafef 100644
--- a/src/router.js
+++ b/src/router.js
@@ -60,7 +60,7 @@ const getStartingComponent = () => {
/* Returns the meta tags for each route */
const makeMetaTags = (defaultTitle) => ({
- title: pageInfo && pageInfo.title ? pageInfo.title : defaultTitle,
+ title: pageInfo.title || defaultTitle,
metaTags: metaTagData,
});