FIX: Show correct status for user reviewables (#20959)

The status should use the word "user" instead of "flag", for example
"approved user" instead of "approved flag". The problem was caused by
a mismatched type.
This commit is contained in:
Bianca Nenciu 2023-04-04 19:53:04 +03:00 committed by GitHub
parent 9ff105973f
commit e9cd74a9e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ function dataFor(status, type) {
name: "approved_post",
cssClass: "approved",
};
case "User":
case "ReviewableUser":
return {
icon: "check",
name: "approved_user",
@ -42,7 +42,7 @@ function dataFor(status, type) {
name: "rejected_post",
cssClass: "rejected",
};
case "User":
case "ReviewableUser":
return {
icon: "times",
name: "rejected_user",