Skip to content

Commit

Permalink
feat: show crown icon when streaking
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieweavis committed Mar 3, 2021
1 parent 77e96de commit 20b0701
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/main.ts
Expand Up @@ -78,6 +78,8 @@ const bootstrap = (): void => {
try {
stats = await fetchStats(username);
if (stats?.streak?.current > 0) icon = iconSets[iconSet].contributed;
if (stats?.streak?.current === stats?.streak?.best)
icon = iconSets[iconSet].streaking;
} catch (err) {
icon = iconSets[iconSet].error;
}
Expand Down

0 comments on commit 20b0701

Please sign in to comment.