Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: support cluster-info responses without identity and uptime data
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored and sunnygleason committed Jul 25, 2019
1 parent 857f8ea commit 5496f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ class App extends Component {
let newG = {...g};
let vote = voting.find(x => x.nodePubkey === newG.pubkey);
newG.voteAccount = vote;
let identity = identities.find(v => v.pubkey === newG.pubkey);
let identity = (identities || []).find(v => v.pubkey === newG.pubkey);
newG.identity = identity;
let uptime = vote && uptimes.find(v => v.pubkey === vote.pubkey);
let uptime = vote && (uptimes || []).find(v => v.pubkey === vote.pubkey);
newG.uptime = uptime;

return newG;
Expand Down

0 comments on commit 5496f37

Please sign in to comment.