From b58cd46e4898d77bfbb6c42cdaa4b19ac802c9cd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 2 Apr 2018 10:01:18 -0700 Subject: [PATCH] profile: Fix field types on the frontend. --- static/js/settings_account.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/js/settings_account.js b/static/js/settings_account.js index 819b3d8233..33c3fe8bfa 100644 --- a/static/js/settings_account.js +++ b/static/js/settings_account.js @@ -61,10 +61,8 @@ function add_custom_profile_fields_to_settings() { var value = people.my_custom_profile_data(field.id); var is_long_text = field.type === 4; - // 1 & 2 type represent numeric data and 3 & 4 type represent textual data. + // 1 & 2 type represent textual data. if (field.type === 1 || field.type === 2) { - type = "number"; - } else if (field.type === 3 || field.type === 4) { type = "text"; } else { blueslip.error("Undefined field type.");