fix flagReason

This commit is contained in:
Barış Soner Uşaklı
2017-11-09 16:56:15 -05:00
committed by GitHub
parent 6c755869cd
commit cd3d1f07e0

View File

@@ -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);
}