summaryrefslogtreecommitdiff
path: root/src/components/repository-list
diff options
context:
space:
mode:
authorKamran Ahmed <kaahmed@altayer.com>2019-06-20 16:50:57 +0400
committerKamran Ahmed <kaahmed@altayer.com>2019-06-20 16:50:57 +0400
commit0dc7be177f166825bc922cb45140d08867af49bf (patch)
tree9f898e91ba91a297fc1217e41bb53213fd3ab03c /src/components/repository-list
parentUpdate dependencies and add issue count (diff)
downloadgithunt-0dc7be177f166825bc922cb45140d08867af49bf.tar.gz
Fix - Error on the grid view
Diffstat (limited to 'src/components/repository-list')
-rw-r--r--src/components/repository-list/list-item/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/repository-list/list-item/index.js b/src/components/repository-list/list-item/index.js
index 8934c75..37a68d6 100644
--- a/src/components/repository-list/list-item/index.js
+++ b/src/components/repository-list/list-item/index.js
@@ -47,14 +47,14 @@ class ListItem extends React.Component {
rel="noopener noreferrer"
target="_blank">
<Fork />
- { this.props.repository.forks.toLocaleString() }
+ { this.props.repository.forks ? this.props.repository.forks.toLocaleString() : 0 }
</a>
<a className="muted-link d-inline-block mr-3"
href={ `${this.props.repository.html_url}/issues` }
rel="noopener noreferrer"
target="_blank">
<Issue />
- { this.props.repository.open_issues.toLocaleString() }
+ { this.props.repository.open_issues ? this.props.repository.open_issues.toLocaleString() : 0 }
</a>
</div>
</div>