From 1a81bda3db066301b3fada3b3db0e1db5f0b2e9e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Apr 2019 17:08:59 +0300 Subject: isCode format fix --- vnext/src/components/Message.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 1d9afe9a..6b0854a4 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -12,6 +12,7 @@ import { format } from '../utils/embed'; import './Message.css'; function Message({ data, visitor, children, ...rest }) { + const isCode = (data.tags || []).indexOf('code') >= 0; return (
= 0) }}>
+