diff --git a/components/lib/inputotp/InputOtp.js b/components/lib/inputotp/InputOtp.js index 6acd94dc69..1fe5730ea4 100644 --- a/components/lib/inputotp/InputOtp.js +++ b/components/lib/inputotp/InputOtp.js @@ -68,7 +68,7 @@ export const InputOtp = React.memo( const updateTokens = (event, index) => { const inputValue = event.target.value; - const newTokens = [...tokens]; + let newTokens = [...tokens]; newTokens[index] = inputValue; newTokens = newTokens.join('');