Skip to content

Commit df7b49a

Browse files
aromalanilapollonian
authored andcommitted
Changed error message
1 parent eac24ee commit df7b49a

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 length');
149+
else console.error('Length of the placeholder should be either 1 or equal to the number of inputs');
150150
}
151151
return;
152152
};

0 commit comments

Comments
 (0)