From ad0866804e35803bbf0975e09cf6c8fca1fa9884 Mon Sep 17 00:00:00 2001 From: ThibG Date: Fri, 19 Jul 2019 09:18:23 +0200 Subject: [PATCH] Fix avatar animation on hover when not logged in (#11349) --- app/javascript/packs/public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index 61f5dfb10..132a9766e 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -187,7 +187,7 @@ function main() { return ({ target }) => { const swapSrc = target.getAttribute(swapTo); //only change the img source if autoplay is off and the image src is actually different - if(target.getAttribute('data-autoplay') === 'false' && target.src !== swapSrc) { + if(target.getAttribute('data-autoplay') !== 'true' && target.src !== swapSrc) { target.src = swapSrc; } };