From d2f5509fedbf8a87598c8477e0090f2c14dc57b8 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Tue, 3 Aug 2021 11:02:09 +0100 Subject: [PATCH] remove unnecessary extra bool check for cobranding (#4368) GitOrigin-RevId: 3f1c6b03030d7fd59be802053f6bcf49e919e0ea --- .../editor-navigation-toolbar/components/toolbar-header.js | 6 +++--- .../components/toolbar-header.test.js | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js b/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js index 5d4074b528..02b12a6ab0 100644 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js +++ b/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js @@ -43,9 +43,9 @@ const ToolbarHeader = React.memo(function ToolbarHeader({
- {cobranding && - cobranding.isProjectCobranded && - cobranding.logoImgUrl && } + {cobranding && cobranding.logoImgUrl && ( + + )}
{pdfButtonIsVisible && ( diff --git a/services/web/test/frontend/features/editor-navigation-toolbar/components/toolbar-header.test.js b/services/web/test/frontend/features/editor-navigation-toolbar/components/toolbar-header.test.js index 413936d812..a2a8cd9c43 100644 --- a/services/web/test/frontend/features/editor-navigation-toolbar/components/toolbar-header.test.js +++ b/services/web/test/frontend/features/editor-navigation-toolbar/components/toolbar-header.test.js @@ -29,7 +29,6 @@ describe('', function () { const props = { ...defaultProps, cobranding: { - isProjectCobranded: true, brandVariationHomeUrl: 'http://cobranding', brandVariationName: 'variation', logoImgUrl: 'http://cobranding/logo',