Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-mk",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple, light weight (5kB), and declarative React component for displaying typing animations, painlessly.",
"main": "lib/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/useKeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function useKeyboard() {
setDelayRange(keyPressDelayRange);
setChars(initialState);
/* istanbul ignore else */
if (typeof text === 'string') {
if (typeof text === 'string' && text.length > 0) {
setRemainingChars(text);
} else {
resolve();
Expand Down