mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
[resumes][feat] add another threshold to make resumes reviewed
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user