fixes #57, do not render indicator when no reject candidates are configured
This commit is contained in:
parent
996465988f
commit
10139bc527
@ -158,6 +158,9 @@ export const RpkiIndicator = connect(
|
|||||||
class _RejectCandidateIndicator extends React.Component {
|
class _RejectCandidateIndicator extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
if (!this.props.candidateCommunities) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (!isRejectCandidate(this.props.candidateCommunities, this.props.route)) {
|
if (!isRejectCandidate(this.props.candidateCommunities, this.props.route)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user