mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
comment is now required when reporting quotes
This commit is contained in:
parent
16f28ca831
commit
721f4c3c16
1 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue