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.

settings: Rephrase comment in settings_components.ts.

Shubham Padia2a7cbc96ec4c
diff --git a/web/src/settings_components.ts b/web/src/settings_components.ts
index 3499dc62e61..dde54bf292c 100644
--- a/web/src/settings_components.ts
+++ b/web/src/settings_components.ts
@@ -436,8 +436,7 @@ export function read_field_data_from_form(
): FieldData | undefined {
const field_types = realm.custom_profile_field_types;
- // Only read field data if we are creating a select field
- // or external account field.
+ // Only the following field types support associated field data.
if (field_type_id === field_types.SELECT.id) {
return read_select_field_data_from_form($profile_field_form, old_field_data);
} else if (field_type_id === field_types.EXTERNAL_ACCOUNT.id) {