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