[resumes][feat] add another threshold to make resumes reviewed

pull/451/head
Keane Chan 2 years ago
parent 0132b298b9
commit 04e83f6732
No known key found for this signature in database
GPG Key ID: 32718398E1E9F87C

@ -79,7 +79,10 @@ export default function ResumeCommentsForm({
setShowCommentsForm(false);
const { prevCount, newCount } = data;
// Auto mark resume as resolved once the total comments passes the 5 threshold
if (newCount >= 5 && prevCount < 5) {
if (
(newCount >= 5 && prevCount < 5) ||
(newCount >= 15 && prevCount < 15)
) {
resolveMutation.mutate({
id: resumeId,
val: true,

Loading…
Cancel
Save