From a53934a5c951d744fff9105d23a0e1f30b58cbb2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 13 Jul 2020 19:41:42 -0700 Subject: [PATCH] fix --- app/components/Layout.js | 2 +- app/components/PageTitle.js | 33 +++++++++++++++++---------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/app/components/Layout.js b/app/components/Layout.js index 4da00c39..1a560f22 100644 --- a/app/components/Layout.js +++ b/app/components/Layout.js @@ -97,7 +97,7 @@ class Layout extends React.Component { return ( - {team ? `${team.name} – Outline` : "Outline"} + {team && team.name ? team.name : "Outline"} { + const { team } = auth; -const PageTitle = observer(({ auth, title, favicon }: Props) => ( - - - {team ? `${title} - ${team.name} - Outline` : `${title} - Outline`} - - - - -)); + return ( + + + {team && team.name ? `${title} - ${team.name}` : `${title} - Outline`} + + + + + ); +}); export default inject("auth")(PageTitle);