diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-08 13:42:16 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-08 13:42:16 +0300 |
| commit | 73127f0e2587ae2e06c3480451e9ea7fce3ce4c7 (patch) | |
| tree | 65720a865014e246b0f6f875e38ef95bb2374789 /src/components/rich_content | |
| parent | 9ea370033af450c0d5e4650a7c10f0e1ffec911c (diff) | |
fix empty spaces again
Diffstat (limited to 'src/components/rich_content')
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 26a64f28..bb7ae739 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -46,8 +46,8 @@ export default Vue.component('RichContent', { const processItem = (item) => { // Handle text noes - just add emoji if (typeof item === 'string') { - const emptyText = item.trim() - if (!emptyText) { + const emptyText = item.trim() === '' + if (emptyText) { return encounteredText ? item : item.trim() } let unescapedItem = unescape(item) |
