Skip to content

Commit

Permalink
Fixed loop option not doing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesManningR committed Sep 20, 2022
1 parent 6fe0587 commit 5fc0b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UseTypewriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ export function useTypewriter(
*/
const isLastIteration = computed(
() =>
!loop.value ||
iterations.value !== 0 &&
loop.value &&
iteration.value >= iterations.value
(iteration.value >= iterations.value)
);

// All functions run sequentially, so we can use a single timeout
Expand Down

0 comments on commit 5fc0b3f

Please sign in to comment.