diff --git a/app/javascript/flavours/glitch/components/avatar.js b/app/javascript/flavours/glitch/components/avatar.js index c5e9072c4..e3a838523 100644 --- a/app/javascript/flavours/glitch/components/avatar.js +++ b/app/javascript/flavours/glitch/components/avatar.js @@ -57,14 +57,14 @@ export default class Avatar extends React.PureComponent { backgroundSize: `${size}px ${size}px`, }; + let imageSrc = staticSrc; if (hovering || animate) { - style.backgroundImage = `url(${src})`; - } else { - style.backgroundImage = `url(${staticSrc})`; + imageSrc = src; } return ( -