Skip to content

Commit 5b3a836

Browse files
committed
fix fix
1 parent fde2bb4 commit 5b3a836

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/app/page.tsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -555,17 +555,17 @@ export default function HomePage() {
555555
message: 'Fetching issues and pull requests...'
556556
});
557557

558-
await fetchIssuesAndPRs(fromDate, isOrg)
559-
.catch((err) => {
560-
console.error('Error fetching issues and PRs:', err);
561-
setIssuesAndPRs([]);
562-
})
563-
.finally(() => {
564-
if (allLatestCommits.length > 0) {
565-
setProgress(null);
566-
return generateSummary(allLatestCommits);
567-
}
568-
});
558+
try {
559+
await fetchIssuesAndPRs(fromDate, isOrg);
560+
} catch (err) {
561+
console.error('Error fetching issues and PRs:', err);
562+
setIssuesAndPRs([]);
563+
}
564+
565+
if (allLatestCommits.length > 0) {
566+
setProgress(null);
567+
await generateSummary(allLatestCommits);
568+
}
569569

570570
} catch (err) {
571571
setError(err instanceof Error ? err.message : "Failed to fetch commits");

0 commit comments

Comments
 (0)