diff --git a/ui/src/components/Hoc/withPageTitle/utils/hooks.ts b/ui/src/components/Hoc/withPageTitle/utils/hooks.ts index 921d762f..ab39451a 100644 --- a/ui/src/components/Hoc/withPageTitle/utils/hooks.ts +++ b/ui/src/components/Hoc/withPageTitle/utils/hooks.ts @@ -16,7 +16,7 @@ const usePageTitle = () => { title, description, helpObject: HELP[id] || {}, - beamObject: BEAM[id], + beamObject: BEAM[id] || {}, url: `https://binarytree.dev${pathname}`, }; }; diff --git a/ui/src/components/Hoc/withPageTitle/withPageTitle.tsx b/ui/src/components/Hoc/withPageTitle/withPageTitle.tsx index 09d19ca9..e013ef18 100644 --- a/ui/src/components/Hoc/withPageTitle/withPageTitle.tsx +++ b/ui/src/components/Hoc/withPageTitle/withPageTitle.tsx @@ -54,7 +54,9 @@ const withPageTitle = ( )} - + {beamObject.length > 0 && ( + + )}