Skip to content

Commit e44d0fb

Browse files
committed
interval race cond
Signed-off-by: Vedansh Saini <[email protected]>
1 parent 65d07f8 commit e44d0fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scripts/scrumHelper.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,9 @@ ${userReason}`;
10531053
if (outputTarget === 'popup') {
10541054
return;
10551055
} else {
1056-
if (scrumBody && githubUsername && githubIssuesData) {
1056+
if (scrumBody && githubUsername && githubIssuesData && githubPrsReviewData) {
10571057
clearInterval(intervalWriteGithubIssues);
1058+
clearInterval(intervalWriteGithubPrs);
10581059
writeGithubIssuesPrs();
10591060
}
10601061
}
@@ -1063,8 +1064,9 @@ ${userReason}`;
10631064
if (outputTarget === 'popup') {
10641065
return;
10651066
} else {
1066-
if (scrumBody && githubUsername && githubPrsReviewData) {
1067+
if (scrumBody && githubUsername && githubPrsReviewData && githubIssuesData) {
10671068
clearInterval(intervalWriteGithubPrs);
1069+
clearInterval(intervalWriteGithubIssues);
10681070
writeGithubPrsReviews();
10691071
}
10701072
}

0 commit comments

Comments
 (0)