From 7f48a3c6b8aefa5f37c592a4dfb7d78346d904ba Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 11 Sep 2019 14:39:57 -0400 Subject: Support [0, 0] --- lib/render-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/render-msg.js b/lib/render-msg.js index 7883dee..97b71d7 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -397,7 +397,7 @@ RenderMsg.prototype.post = function (cb) { forkLinks.map(function (a, i) { return h('div', h('small', h('span.symbol', '⑂'), ' ', a)) }), - self.c.x || self.c.y ? h('div', h('small', '[' + self.c.x + ', ' + self.c.y + ']')) : '', + typeof self.c.x === 'number' || typeof self.c.y === 'number' ? h('div', h('small', '[' + self.c.x + ', ' + self.c.y + ']')) : '', self.c.tags ? h('div', h('small', 'tags: ', u.toArray(self.c.tags).map(function (tag, i) { return [i > 0 ? ', ' : '', h('code', tag)] }))) : '', -- cgit v1.2.3