mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
fixes #57, do not render indicator when no reject candidates are configured
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user