dhre-ui-kit 0.0.241 → 0.0.242

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -4052,10 +4052,10 @@ const OTPInput = React__default["default"].forwardRef(
4052
4052
  enableResendOtp();
4053
4053
  }, []);
4054
4054
  const onClickResendOTP = () => {
4055
- if (resendOTPCount >= maxResendCount - 1) {
4055
+ if (resendOTPCount > maxResendCount - 1) {
4056
4056
  setErrorMessageMaxReachCount("You have exceeded the maximum number of attempts.");
4057
4057
  }
4058
- if (resendOTPCount <= maxResendCount) {
4058
+ if (resendOTPCount < maxResendCount) {
4059
4059
  setIsResendOtpEnable(false);
4060
4060
  setResendOTPCount(resendOTPCount + 1);
4061
4061
  enableResendOtp();