Skip to content

Commit

Permalink
remove ? check on logoRef
Browse files Browse the repository at this point in the history
  • Loading branch information
lianbenjamin committed Jan 25, 2024
1 parent fb43a5e commit 8958a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/logo/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Logo extends Component<any, any> {
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}'`);
Expand Down

0 comments on commit 8958a49

Please sign in to comment.