From 4b397adb5bfb07be587c788e6e10962aa383d25f 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 651b89566..76b0da12f 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 }) =>