Skip to content

Commit

Permalink
Avoid redundand getPrimary() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Dec 14, 2015
1 parent 8d196a0 commit 398ade4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/sites-dropdown/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default React.createClass( {
},

getSelectedSite() {
return sites.getSite( this.state.selected ) || sites.getPrimary();
return sites.getSite( this.state.selected );
},

selectSite( siteSlug ) {
Expand Down

0 comments on commit 398ade4

Please sign in to comment.