Skip to content

Node.js based forum software built for the modern web

fix flagReason

Barış Soner Uşaklıcd3d1f07e0d9
diff --git a/public/src/modules/flags.js b/public/src/modules/flags.js
index 2531bd33d7..f6eb941105 100644
--- a/public/src/modules/flags.js
+++ b/public/src/modules/flags.js
@@ -22,7 +22,7 @@ define('flags', ['benchpress'], function (Benchpress) {
flagModal.on('click', '.flag-reason', function () {
var reportText = $(this).text();
- if (flagReason.length === 0) {
+ if (flagReason.val().length === 0) {
return createFlag(data.type, data.id, reportText);
}