Commit 8ff58551ced7bc06366af38dfc920847013609a6
add brackets to if statement
Ev Bogue committed on 10/12/2018, 6:37:27 PMParent: 350c54f61ff89efdc100ba655b7d6e489e55b093
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -105,11 +105,12 @@ | ||
105 | 105 | message.appendChild(reponame) |
106 | 106 | |
107 | 107 | |
108 | 108 | ssbAvatar(sbot, id, msg.value.content.repo, function (err, data) { |
109 | - if (data) | |
110 | - var actualname = h('p', 'pushed to ', h('a', {href: '#' + msg.value.content.repo}, '%' + data.name)) | |
111 | - reponame.parentNode.replaceChild(actualname, reponame) | |
109 | + if (data) { | |
110 | + var actualname = h('p', 'pushed to ', h('a', {href: '#' + msg.value.content.repo}, '%' + data.name)) | |
111 | + reponame.parentNode.replaceChild(actualname, reponame) | |
112 | + } | |
112 | 113 | }) |
113 | 114 | |
114 | 115 | message.appendChild(cloneurl) |
115 | 116 |
Built with git-ssb-web