Skip to content

Commit 79a8c4f

Browse files
committed
dynamic repos min length
1 parent 1e2645c commit 79a8c4f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cards/ReposCard.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ function ReposCard({ analyticsTag, icon, withAds }) {
152152
)
153153
let values = await Promise.all(promises)
154154
const nbrTags = values.length
155-
let minLength = 25
156-
155+
let minLength = Math.min(...values.map(v => v.length))
157156
const data = []
158157
for (let index = 0; index < minLength; index++) {
159158
for (let i = 0; i < nbrTags; i++) {

0 commit comments

Comments
 (0)