Skip to content

Commit

Permalink
Themes: Fix prop warning for QueryUserPurchases component (#8411)
Browse files Browse the repository at this point in the history
  • Loading branch information
seear authored Oct 4, 2016
1 parent 5c9616b commit 84cf1cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/my-sites/theme/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ const ThemeSheet = React.createClass( {
const analyticsPath = `/theme/:slug${ section ? '/' + section : '' }${ siteID ? '/:site_id' : '' }`;
const analyticsPageTitle = `Themes > Details Sheet${ section ? ' > ' + titlecase( section ) : '' }${ siteID ? ' > Site' : '' }`;

const { name: themeName, description } = this.props;
const {  name: themeName, description, currentUserId } = this.props;
const title = i18n.translate( '%(themeName)s Theme', {
args: { themeName }
} );
Expand All @@ -410,7 +410,7 @@ const ThemeSheet = React.createClass( {
canonicalUrl={ canonicalUrl }
image={ this.props.screenshot }>
<QueryThemeDetails id={ this.props.id } siteId={ siteID } />
<QueryUserPurchases userId={ this.props.currentUserId } />
{ currentUserId && <QueryUserPurchases userId={ currentUserId } /> }
<Main className="theme__sheet">
<PageViewTracker path={ analyticsPath } title={ analyticsPageTitle } />
{ this.renderBar() }
Expand Down

0 comments on commit 84cf1cc

Please sign in to comment.