diff --git a/packages/@ourworldindata/grapher/src/header/Header.tsx b/packages/@ourworldindata/grapher/src/header/Header.tsx index d2a9650e866..eeffa6b2967 100644 --- a/packages/@ourworldindata/grapher/src/header/Header.tsx +++ b/packages/@ourworldindata/grapher/src/header/Header.tsx @@ -44,11 +44,11 @@ export class Header< } @computed protected get titleText(): string { - return this.manager.currentTitle ?? "" + return this.manager.currentTitle?.trim() ?? "" } @computed private get subtitleText(): string { - return this.manager.currentSubtitle ?? "" + return this.manager.currentSubtitle?.trim() ?? "" } @computed get logo(): Logo | undefined {