Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): only use node uris if there are some
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jul 13, 2020
1 parent 7f03cd0 commit 937a200
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion renderer/reducers/info/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ const nodePubkey = createSelector(nodeUris, identityPubkey, (n, pk) => {
*
* @returns {string} Node uri or pubkey
*/
const nodeUrisOrPubkey = createSelector(nodeUris, nodePubkey, (uris, pk) => uris || [pk])
const nodeUrisOrPubkey = createSelector(nodeUris, nodePubkey, (uris, pk) => {
if (uris && uris.length) {
return uris
}
return [pk]
})

/**
* networkInfo - Node network info.
Expand Down

0 comments on commit 937a200

Please sign in to comment.