From ef5dc0291de33d94640334af86a46afb60f0b897 Mon Sep 17 00:00:00 2001 From: Torresmorah Date: Mon, 11 Dec 2023 14:54:03 -0600 Subject: [PATCH] fix(webapp): set page title only if it exists --- webapp/src/layouts/Dashboard.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/src/layouts/Dashboard.js b/webapp/src/layouts/Dashboard.js index 631e785c..470aa688 100644 --- a/webapp/src/layouts/Dashboard.js +++ b/webapp/src/layouts/Dashboard.js @@ -115,9 +115,11 @@ const Dashboard = ({ children }) => { networkName: eosConfig.networkLabel, }), pathname: pathName, - pageTitle: t(`${pathName}>title`, { - networkName: eosConfig.networkLabel, - }), + pageTitle: i18n.exists(`routes:${pathName}>title`) + ? t(`${pathName}>title`, { + networkName: eosConfig.networkLabel, + }) + : '', useConnectWallet: Boolean(route.useConnectWallet), }) } else {