Fix ban reason being set to the banned user's username

This commit is contained in:
Karina Kwiatek 2022-06-26 09:35:22 +02:00 committed by Karina Kwiatek
parent f6828a24ad
commit e4a00ceedc
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export function banFormHandler(event: Event): void {
if (checkbox && checkbox.checked) { if (checkbox && checkbox.checked) {
data['ban'] = '1'; data['ban'] = '1';
data['reason'] = form.elements['user'].value; data['reason'] = form.elements['reason'].value;
if (!permaCheckbox.checked) { if (!permaCheckbox.checked) {
data['duration'] = form.elements['duration'].value.trim(); data['duration'] = form.elements['duration'].value.trim();