Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Fix buggy code block language notice.

Tim Abbott5c0a52585c1b
diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js
index 11e8fedcaa3..cc0cf06b15d 100644
--- a/static/js/composebox_typeahead.js
+++ b/static/js/composebox_typeahead.js
@@ -921,7 +921,7 @@ function get_header_text() {
tip_text = i18n.t('User will not be notified');
break;
case 'syntax':
- if (page_params.realm_default_code_block_language !== '') {
+ if (page_params.realm_default_code_block_language !== null) {
tip_text = i18n.t("Default is __language__. Use 'text' to disable highlighting.",
{language: page_params.realm_default_code_block_language});
break;