From 071fdd67585bd876d47d7b91f7603323ef928071 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Mon, 16 Oct 2023 09:49:37 +0000 Subject: [PATCH] fix(grapher): remove extra line below subtitle --- packages/@ourworldindata/grapher/src/header/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {