fixes #57, do not render indicator when no reject candidates are configured

This commit is contained in:
Annika Hannig 2021-07-09 15:42:22 +02:00
parent 996465988f
commit 10139bc527
No known key found for this signature in database
GPG Key ID: 62E226E47DDCE58D

View File

@ -158,6 +158,9 @@ export const RpkiIndicator = connect(
class _RejectCandidateIndicator extends React.Component {
render() {
if (!this.props.candidateCommunities) {
return null;
}
if (!isRejectCandidate(this.props.candidateCommunities, this.props.route)) {
return null;
}