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

Commit

Permalink
fix(wallet): prevent crash if node pubkey and uri is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jul 13, 2020
1 parent 55e1582 commit 7f03cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/reducers/info/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const hasMppSupport = createSelector(grpcProtoVersion, v => {
* @returns {string} Node pubkey
*/
const nodePubkey = createSelector(nodeUris, identityPubkey, (n, pk) => {
const parseFromDataUri = () => n && n[0].split('@')[0]
const parseFromDataUri = () => n && n[0] && n[0].split('@')[0]
return pk || parseFromDataUri()
})

Expand Down

0 comments on commit 7f03cd0

Please sign in to comment.