From 8958a49216b487f1b1e2008d46385e6c9ad3254a Mon Sep 17 00:00:00 2001 From: lianbenjamin <79077248+lianbenjamin@users.noreply.github.com> Date: Thu, 25 Jan 2024 16:46:31 +0200 Subject: [PATCH] remove ? check on logoRef --- src/components/logo/logo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/logo/logo.tsx b/src/components/logo/logo.tsx index 79382255e..03d3e8bdc 100644 --- a/src/components/logo/logo.tsx +++ b/src/components/logo/logo.tsx @@ -58,7 +58,7 @@ class Logo extends Component { if (url.indexOf(ENTRY_VAR) !== -1) { const {player, eventManager} = this.props; eventManager.listen(player, player.Event.MEDIA_LOADED, () => { - if (this._logoRef?.current) { + if (this._logoRef.current) { this._logoRef.current.href = url.replace(ENTRY_VAR, player.sources.id); } else { this.props.logger.debug(`Logo url was not replaced, because ref is null. The url: '${url}'`);