Commit b11e95b09c5591d8333776bd0e926d85b6ddb639
fix bug in compose
Ev Bogue committed on 9/19/2018, 4:16:58 PMParent: 0655463e071d13cbb89dbb6968727e21229414e7
Files changed
compose.js | changed |
compose.js | ||
---|---|---|
@@ -44,10 +44,11 @@ | ||
44 | 44 | var filesById = {} |
45 | 45 | |
46 | 46 | var composer = h('div.composer') |
47 | 47 | var container = h('div.container') |
48 | - var boostName = avatar.cachedName(opts.boostAuthor) | |
49 | - | |
48 | + if (opts.boostAuthor) { | |
49 | + var boostName = avatar.cachedName(opts.boostAuthor) | |
50 | + } | |
50 | 51 | if (opts.boostContent) { |
51 | 52 | var textarea = h('textarea.compose', 'Blah') |
52 | 53 | var str = opts.boostContent |
53 | 54 | var lines = str.split("\n") |
Built with git-ssb-web