Skip to content

Commit

Permalink
Fix non-engine player name tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Mar 15, 2020
1 parent 03dbac4 commit f76a885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/bars/PlayBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class PlayBar extends Component {
'span',
{
class: classNames('name', {engine: engineSyncers[0] != null}),
title: engineSyncers[0] != null && t('Engine')
title: engineSyncers[0] != null ? t('Engine') : null
},

engineSyncers[0] == null
Expand Down Expand Up @@ -176,7 +176,7 @@ export default class PlayBar extends Component {
'span',
{
class: classNames('name', {engine: engineSyncers[1] != null}),
title: engineSyncers[1] != null && t('Engine')
title: engineSyncers[1] != null ? t('Engine') : null
},
engineSyncers[1] == null
? playerNames[1] || t('White')
Expand Down

0 comments on commit f76a885

Please sign in to comment.