From 26e7e5f0effffcec33ca9ccd2e4e6062acca6133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 16 Oct 2017 21:13:34 +0200 Subject: [PATCH] fix some lint errors --- app/javascript/mastodon/components/icon_button.js | 4 ++-- app/javascript/packs/common.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index 651b89566b..76b0da12fe 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -90,11 +90,11 @@ export default class IconButton extends React.PureComponent { damping: 7, }; const motionStyle = { - rotate: this.props.animate ? spring(rotateDeg, springOpts) : 0, + rotate: animate ? spring(rotateDeg, springOpts) : 0, }; return ( - + {({ rotate }) =>