Skip to content

Commit eac24ee

Browse files
aromalanilapollonian
authored andcommitted
Refactored error message
1 parent 6693d9a commit eac24ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class OtpInput extends Component<Props, State> {
146146
if (typeof placeholder === 'string') {
147147
if (placeholder.length === 1) return placeholder.repeat(numInputs);
148148
else if (placeholder.length === numInputs) return placeholder;
149-
else console.error('Invalid placeholder value');
149+
else console.error('Invalid placeholder length');
150150
}
151151
return;
152152
};

0 commit comments

Comments
 (0)