Skip to content

Commit

Permalink
Merge pull request #378 from iFixit/fix-undefined-title
Browse files Browse the repository at this point in the history
Fix 'undefined' title
  • Loading branch information
deltuh-vee authored May 1, 2023
2 parents b03de75 + 91cc28e commit cbf823e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function Navbar(props: NavBarProps) {
);
// Set the page title
const title = getTitle();
useEffect(() => { document.title = title; }, [title]);
useEffect(() => { document.title = title || ''; }, [title]);

return (
<Center
Expand Down

0 comments on commit cbf823e

Please sign in to comment.