File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,8 @@ class OtpInput extends Component<Props, State> {
131
131
activeInput : 0 ,
132
132
} ;
133
133
134
- getOtpValue = ( ) => (
135
- this . props . value ? this . props . value . toString ( ) . split ( '' ) : [ ]
136
- ) ;
134
+ getOtpValue = ( ) =>
135
+ this . props . value ? this . props . value . toString ( ) . split ( '' ) : [ ] ;
137
136
138
137
// Helper to return OTP from input
139
138
handleOtpChange = ( otp : string [ ] ) => {
@@ -222,7 +221,7 @@ class OtpInput extends Component<Props, State> {
222
221
e . preventDefault ( ) ;
223
222
this . focusNextInput ( ) ;
224
223
}
225
- }
224
+ } ;
226
225
227
226
renderInputs = ( ) => {
228
227
const { activeInput } = this . state ;
@@ -282,7 +281,7 @@ class OtpInput extends Component<Props, State> {
282
281
{ display : 'flex' } ,
283
282
isStyleObject ( containerStyle ) && containerStyle
284
283
) }
285
- className = { ! isStyleObject ( containerStyle ) && containerStyle }
284
+ className = { ! isStyleObject ( containerStyle ) ? containerStyle : '' }
286
285
>
287
286
{ this . renderInputs ( ) }
288
287
</ div >
You can’t perform that action at this time.
0 commit comments