Skip to content

Commit d02f00d

Browse files
committed
fix: follow the rabbit
1 parent d4f51ee commit d02f00d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ function pushEasterEggKey(key: CheatKey) {
236236
resetTimeout = setTimeout(resetEasterEgg, easterEggResetDelay)
237237
238238
const nextIndex = easterEgg.value.length
239-
239+
const expectedKey = cheatCode[nextIndex]
240240
// Reset if the position is wrong
241-
if (cheatCode[nextIndex] !== key) {
241+
if (!expectedKey || expectedKey !== key) {
242242
resetEasterEgg()
243243
return
244244
}

0 commit comments

Comments
 (0)