Skip to content

Commit

Permalink
Fix flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Sep 26, 2017
1 parent fcd03dd commit 70fdffd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/amo/components/AddonMeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AddonMetaBase extends React.Component {
<div className="AddonMeta-item AddonMeta-users">
<h3 className="visually-hidden">{i18n.gettext('Used by')}</h3>
<p className="AddonMeta-text AddonMeta-user-count">
{isAddonAuthor({ addon, userId }) ? (
{addon && isAddonAuthor({ addon, userId }) ? (
<Link
href={`/addon/${addon.slug}/statistics/`}
title={i18n.gettext('Click to view statistics')}
Expand All @@ -80,7 +80,7 @@ export class AddonMetaBase extends React.Component {
}
}

export const mapStateToProps = (state) => {
export const mapStateToProps = (state: Object) => {
return {
userId: state.user.id,
};
Expand Down
2 changes: 1 addition & 1 deletion src/amo/components/AddonMoreInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class AddonMoreInfoBase extends React.Component {
}
}

export const mapStateToProps = (state) => {
export const mapStateToProps = (state: Object) => {
return {
userId: state.user.id,
};
Expand Down

0 comments on commit 70fdffd

Please sign in to comment.