This commit is contained in:
Elijah R 2024-04-07 17:56:18 -04:00
parent bee19d5af9
commit 2e6bc45977

View file

@ -144,7 +144,7 @@ elements.searchUsersForm.addEventListener('submit', async e => {
developerCheckbox.addEventListener('change', async e => {
var developer = developerCheckbox.checked;
// @ts-ignore
if (!window.confirm(`Are you sure you want to ${developer ? "grant" : "revoke"} developer status ${developer ? "to" : "from"} ${_user.username}?`)) {
if (!window.confirm(`Are you sure you want to ${developer ? "grant" : "revoke"} developer status ${developer ? "to" : "from"} ${user.username}?`)) {
e.preventDefault();
developerCheckbox.checked = !developer;
return false;