Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
Fix for typewriter deleteChars same as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ayozehd committed Sep 19, 2020
1 parent c3e20b5 commit c112381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/modular/typewriter.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typewriter
{% for step in page.header.steps %}
.typeString('{{ step.text|raw }}')
.pauseFor({{ step.pause|defined(2500) }})
{% if step.deleteChars is defined %}
{% if step.deleteChars is not same as( 0 ) %}
.deleteChars({{ step.deleteChars }})
{% else %}
.deleteAll()
Expand Down

0 comments on commit c112381

Please sign in to comment.