Commit fc3bcf54 authored by mgabdev's avatar mgabdev

Fixed issue where if autoplayGif was off, UserInfoPopover wouldn't show

• Fixed:
- issue where if autoplayGif was off, UserInfoPopover wouldn't show on Avatars
parent d452fb52
......@@ -111,7 +111,6 @@ class Avatar extends ImmutablePureComponent {
const { account, size } = this.props
const { hovering, sameImg } = this.state
const shouldAnimate = autoPlayGif || !sameImg
const isPro = !!account ? account.get('is_pro') : false
const alt = !account ? '' : `${account.get('display_name')} ${isPro ? '(PRO)' : ''}`.trim()
const classes = [_s.default, _s.circle, _s.overflowHidden]
......@@ -120,9 +119,9 @@ class Avatar extends ImmutablePureComponent {
}
const options = {
onMouseEnter: shouldAnimate ? this.handleMouseEnter : undefined,
onMouseLeave: shouldAnimate ? this.handleMouseLeave : undefined,
src: !account ? undefined : account.get((hovering || autoPlayGif) ? 'avatar' : 'avatar_static'),
onMouseEnter: this.handleMouseEnter,
onMouseLeave: this.handleMouseLeave,
src: !account ? undefined : account.get(((hovering || autoPlayGif) && !sameImg) ? 'avatar' : 'avatar_static'),
alt: !account ? undefined : account.get('display_name'),
style: {
width: `${size}px`,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment