react-otpcode-input
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -110,3 +110,2 @@ "use strict"; | ||
var newOtp = otp + key; | ||
console.log(newOtp); | ||
setActiveIndex(activeIndex + 1); | ||
@@ -116,3 +115,3 @@ onChange(newOtp); | ||
if (newOtp.length === numberOfInputs) { | ||
onComplete(otp); | ||
onComplete(newOtp); | ||
} | ||
@@ -119,0 +118,0 @@ } |
@@ -73,8 +73,6 @@ import React, { useState, useEffect, useRef } from "react"; | ||
const newOtp = otp + key; | ||
console.log(newOtp); | ||
setActiveIndex(activeIndex + 1); | ||
onChange(newOtp); | ||
if (newOtp.length === numberOfInputs) { | ||
onComplete(otp); | ||
onComplete(newOtp); | ||
} | ||
@@ -81,0 +79,0 @@ } |
{ | ||
"name": "react-otpcode-input", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "OTP Input Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11738
236