Skip to content

Commit de01d94

Browse files
authored
Fix missing cast to number (#2254)
1 parent 8337aad commit de01d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/welcome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async function fetchRecentBios () {
119119
)
120120

121121
// assert that we fetched enough bios
122-
const newBios = bios.filter(b => b.id > FETCH_AFTER)
122+
const newBios = bios.filter(b => Number(b.id) > FETCH_AFTER)
123123
if (newBios.length === bios.length) {
124124
throw new Error('last bio not found. increase limit')
125125
}

0 commit comments

Comments
 (0)