eslint fixes

This commit is contained in:
Alexey Kasyanchuk 2018-06-19 00:24:09 +03:00
parent 3fc7a3e594
commit b733a17643
2 changed files with 8 additions and 8 deletions

View File

@ -311,11 +311,11 @@ export default class TorrentPage extends Page {
if(this.state.searchingIndicator) {
return (
<div className='pad1 w100p column center'>
<div className='row center pad0-75'>
<RaisedButton label={__('Back to main page')} primary={true} onClick={() => {
window.router('/')
}} />
</div>
<div className='row center pad0-75'>
<RaisedButton label={__('Back to main page')} primary={true} onClick={() => {
window.router('/')
}} />
</div>
<RefreshIndicator
size={50}
left={0}

View File

@ -218,9 +218,9 @@ export default class Torrent extends Component {
}
render()
{
const torrent = this.props.torrent;
if(!torrent)
return null // can try draw null torrent (for example on downloading not started)
const torrent = this.props.torrent;
if(!torrent)
return null // can try draw null torrent (for example on downloading not started)
let torrentRating = -1
if(torrent.good > 0 || torrent.bad > 0)