Hiding refresh token when not in test mode

This commit is contained in:
James Barnsley
2017-02-10 08:12:46 +13:00
parent c9e5e28838
commit 8c99d219eb
2 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,8 @@ class SpotifyAuthenticationFrame extends React.Component{
}
renderRefreshButton(){
if( !this.props.authorized ) return null;
console.log(typeof(window._testMode));
if( !this.props.authorized || !window._testMode) return null;
if( this.props.refreshing_token ){
return (