From ccbb86d52f6bedc0a4f7892994d7918c842fe8da Mon Sep 17 00:00:00 2001 From: timothyis Date: Wed, 25 Apr 2018 05:42:10 +0100 Subject: [PATCH] Fix bug when trying to access props instead of state --- components/PluginInfo.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/PluginInfo.js b/components/PluginInfo.js index 1e862560..70e8623d 100644 --- a/components/PluginInfo.js +++ b/components/PluginInfo.js @@ -138,37 +138,37 @@ export default class PluginInfo extends React.Component {
- {this.props.plugin.collected.metadata.publisher.username} + {this.state.plugin.collected.metadata.publisher.username}
- {this.props.plugin.collected.npm.downloads[2].count.toLocaleString()}{' '} + {this.state.plugin.collected.npm.downloads[2].count.toLocaleString()}{' '} downloads in the last month - {this.props.plugin.collected.metadata.links.repository && ( + {this.state.plugin.collected.metadata.links.repository && ( )} View source code
- Version {this.props.plugin.collected.metadata.version} + Version {this.state.plugin.collected.metadata.version}