Skip to content

Commit

Permalink
negative stargazers count
Browse files Browse the repository at this point in the history
  • Loading branch information
naoki-tomita committed Oct 17, 2024
1 parent 6017b6e commit ce89b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/demos/stargazers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Counter.getInitialPrpos = async () => {
if (repo.stargazers_count == null) {
console.log(JSON.stringify(repo));
}
return { stargazersCount: repo.stargazers_count };
return { stargazersCount: repo.stargazers_count ?? -1 };
}

export default Counter

0 comments on commit ce89b69

Please sign in to comment.