Skip to content

Commit

Permalink
Placate ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Dec 11, 2015
1 parent 0c37395 commit edd266d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/components/site-selector-modal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ var SiteSelectorModal = React.createClass( {

getInitialState: function() {
return ( {
site: sitesList.getPrimary().jetpack ?
sitesList.get().filter( this.props.filter )[0] :
sitesList.getPrimary()
site: sitesList.getPrimary().jetpack
? sitesList.get().filter( this.props.filter )[0]
: sitesList.getPrimary()
} );
},

Expand All @@ -58,9 +58,9 @@ var SiteSelectorModal = React.createClass( {
getMainLink: function() {
var url = this.props.getMainUrl && this.props.getMainUrl( this.state.site );

return url ?
<a href={ url } className="button is-primary">{ this.props.mainActionLabel }</a> :
{ action: 'mainAction', label: this.props.mainActionLabel, isPrimary: true };
return url
? <a href={ url } className="button is-primary">{ this.props.mainActionLabel }</a>
: { action: 'mainAction', label: this.props.mainActionLabel, isPrimary: true };
},

render: function() {
Expand Down

0 comments on commit edd266d

Please sign in to comment.