From c43e3b64f4ec82f2bdbb324c6dbc443cc92a2ddd Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 22 Nov 2017 22:43:10 +0000 Subject: [PATCH] Fix check-for-updates button --- app/ui/components/check-for-updates-button.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/app/ui/components/check-for-updates-button.js b/app/ui/components/check-for-updates-button.js index aeb82b6773..8e6eca1c8c 100644 --- a/app/ui/components/check-for-updates-button.js +++ b/app/ui/components/check-for-updates-button.js @@ -44,23 +44,11 @@ class CheckForUpdatesButton extends React.PureComponent { render () { const {children, className} = this.props; - const {status, checking, updateAvailable} = this.state; - - let toShow = children; - - if (checking) { - toShow = status || children; - } - - if (updateAvailable) { - toShow = status; - } + const {status, checking} = this.state; return ( - ); }