Skip to content

Commit

Permalink
Update utils.ts (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaogeorge3 authored Jul 17, 2024
1 parent 7dc3b77 commit ac1032d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const getCharactersData = ({
let step = 0

const getRevealTime = (isIgnored: boolean): number => {
if (isIgnored || revealDuration === 0) {
if (isIgnored || revealDuration === 0 || charactersArray.length === 1) {
return duration
}

Expand Down

0 comments on commit ac1032d

Please sign in to comment.