settings_profile_fields: Remove wrong $ prefix for non-jQuery variable.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-16 16:28:23 -07:00 committed by Anders Kaseorg
parent 70af7d7c58
commit 858f8f1e48
1 changed files with 3 additions and 3 deletions

View File

@ -194,15 +194,15 @@ function set_up_create_field_form() {
if (profile_field_type === field_types.EXTERNAL_ACCOUNT.id) {
$field_elem.show();
const $profile_field_external_account_type = $(
const profile_field_external_account_type = $(
"#profile_field_external_accounts_type",
).val();
if ($profile_field_external_account_type === "custom") {
if (profile_field_external_account_type === "custom") {
$field_url_pattern_elem.show();
} else {
$field_url_pattern_elem.hide();
const profile_field_name =
page_params.realm_default_external_accounts[$profile_field_external_account_type]
page_params.realm_default_external_accounts[profile_field_external_account_type]
.name;
$("#profile_field_name").val(profile_field_name).prop("disabled", true);
$("#profile_field_hint").val("").prop("disabled", true);