FIX: custom fields could be in an incorrect state

FIX: custom fields could be in an incorrect state

diff --git a/assets/javascripts/lib/discourse-markdown/discourse-post-event-block.js.es6 b/assets/javascripts/lib/discourse-markdown/discourse-post-event-block.js.es6
index dd1157f..1bc7a5f 100644
--- a/assets/javascripts/lib/discourse-markdown/discourse-post-event-block.js.es6
+++ b/assets/javascripts/lib/discourse-markdown/discourse-post-event-block.js.es6
@@ -11,7 +11,7 @@ const rule = {
     Object.keys(info.attrs).forEach((key) => {
       const value = info.attrs[key];
 
-      if (typeof value !== undefined) {
+      if (typeof value !== "undefined") {
         token.attrs.push([`data-${dasherize(key)}`, value]);
       }
     });
diff --git a/assets/javascripts/lib/raw-event-helper.js.es6 b/assets/javascripts/lib/raw-event-helper.js.es6
index abb0b37..a1377c1 100644
--- a/assets/javascripts/lib/raw-event-helper.js.es6
+++ b/assets/javascripts/lib/raw-event-helper.js.es6
@@ -59,7 +59,7 @@ export function buildParams(startsAt, endsAt, eventModel, siteSettings) {
     .filter(Boolean)
     .forEach((setting) => {
       const param = camelCase(setting);
-      if (typeof eventModel.custom_fields[setting] !== undefined) {
+      if (typeof eventModel.custom_fields[setting] !== "undefined") {
         params[param] = eventModel.custom_fields[setting];
       }
     });

GitHub sha: 258ec90a