From bd6ccfb55e8ffc52f33e9614e64fd3891caf84ad Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 3 Oct 2022 17:01:21 +0300 Subject: [PATCH] Add missing parameter to the validate username function --- assets/js/pages/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/pages/account.js b/assets/js/pages/account.js index 7df833cd..09877adb 100644 --- a/assets/js/pages/account.js +++ b/assets/js/pages/account.js @@ -170,7 +170,7 @@ App.Pages.Account = (function () { function onUsernameChange() { const username = $username.val(); - App.Http.Account.validateUsername(username).done((response) => { + App.Http.Account.validateUsername(vars('user_id'), username).done((response) => { const isValid = response.is_valid; $username.toggleClass('is-invalid', !isValid); if (!isValid) {