comment is now required when reporting quotes

This commit is contained in:
Miodec 2022-07-18 12:42:32 +02:00
parent 16f28ca831
commit 721f4c3c16

View file

@ -106,6 +106,10 @@ async function submitReport(): Promise<void> {
return Notifications.add("Please select a valid report reason");
}
if (!comment) {
return Notifications.add("Please provide a comment");
}
const characterDifference = comment.length - 250;
if (characterDifference > 0) {
return Notifications.add(