Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
formatOutput render myAddr safely
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Reeves committed Jan 18, 2015
1 parent 091c06c commit ea7e5c7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions shared.js
Expand Up @@ -404,10 +404,15 @@ function formatOutput(output, myAddresses, addresses_book) {
myAddr = myAddresses[addr];

if (myAddr != null) {
if (myAddr.label != null)
return myAddr.label;
else
return addr;
var lspan = $('<span></span>');

if (myAddr.label != null) {
lspan.text(myAddr.label);
} else {
lspan.text(addr);
}

return lspan;
} else {
var a = $('<a target="new"></a>');

Expand Down

0 comments on commit ea7e5c7

Please sign in to comment.