Fix <head> on these pages
They were waiting for context and a user object that wasn't coming
This commit is contained in:
parent
8532742ae1
commit
3c0ef2b6be
3 changed files with 3 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ const NewRoute: React.FC<Props> = ({
|
||||||
|
|
||||||
// Methods: Page component rendering
|
// Methods: Page component rendering
|
||||||
function pageHead() {
|
function pageHead() {
|
||||||
if (context && context.user) return <NewHead />
|
return <NewHead />
|
||||||
}
|
}
|
||||||
|
|
||||||
function pageError() {
|
function pageError() {
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ const SavedRoute: React.FC<Props> = ({
|
||||||
|
|
||||||
// Methods: Page component rendering
|
// Methods: Page component rendering
|
||||||
function pageHead() {
|
function pageHead() {
|
||||||
if (context && context.user) return <SavedHead />
|
return <SavedHead />
|
||||||
}
|
}
|
||||||
|
|
||||||
function pageError() {
|
function pageError() {
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ const TeamsRoute: React.FC<Props> = ({
|
||||||
|
|
||||||
// Methods: Page component rendering
|
// Methods: Page component rendering
|
||||||
function pageHead() {
|
function pageHead() {
|
||||||
if (context && context.user) return <TeamsHead />
|
return <TeamsHead />
|
||||||
}
|
}
|
||||||
|
|
||||||
function pageError() {
|
function pageError() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue