Skip to content

Commit

Permalink
Merge pull request #1404 from edenia/fix/wrong-page-title-1403
Browse files Browse the repository at this point in the history
fix(webapp): set page title only if it exists
  • Loading branch information
xavier506 committed Dec 12, 2023
2 parents 99933f4 + ef5dc02 commit 3d85240
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webapp/src/layouts/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d85240

Please sign in to comment.