Skip to content

Commit aae679b

Browse files
committed
[fix] display w/ >= 5 stars
1 parent 8bf5ebf commit aae679b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Project.elm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ type alias ProcessedData =
4343
{ imgPath : String
4444
, year : Year
4545

46-
-- only add github stars if the project has a github repo and it's above 5 stars (arbitrary)
47-
-- kinda embarassing to display star count if it's THAT low...
46+
-- only add github stars if the project has a github repo w/ 5 stars or more
47+
-- kinda awkward to display a project with 0 stars...
4848
, stargazers : Maybe Int
4949
}
5050

@@ -184,7 +184,7 @@ getStargazers repoName env =
184184
|> BackendTask.allowFatal
185185
|> BackendTask.map
186186
(\stargazers ->
187-
if stargazers > 5 then
187+
if stargazers >= 5 then
188188
Just stargazers
189189

190190
else

0 commit comments

Comments
 (0)