user_profile: Pass correct element to toggle_submit_button.

This commit is contained in:
afeefuddin 2024-07-04 21:41:13 +05:30 committed by Tim Abbott
parent 8f0a0af588
commit 2217eededc
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ export function show_edit_bot_info_modal(user_id, $container) {
avatar_widget.clear();
hide_button_spinner($submit_btn);
original_values = get_current_values($("#bot-edit-form"));
toggle_submit_button($("#edit-user-form"));
toggle_submit_button($("#bot-edit-form"));
ui_report.success(
$t_html({defaultMessage: "Saved"}),
$("#user-profile-modal .save-success"),