Skip to content

Commit

Permalink
fix: restart
Browse files Browse the repository at this point in the history
  • Loading branch information
yb6b committed Mar 24, 2024
1 parent 87516ec commit e352b94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/train/useReview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function useReview<T>(name: string, cards: T[]) {
storageRef.value = emptyRecord()
progress.value = 0
isFirst.value = true
card.value = cards[0]
}

const maxIndex = cards.length - 1
Expand Down

0 comments on commit e352b94

Please sign in to comment.