From a1ed81eec5a1a0edc01a641a9477a65c0634a7c7 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:20:53 +0700 Subject: [PATCH] feat: change length otp checker --- src/core/helpers/otp/otp-service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/helpers/otp/otp-service.ts b/src/core/helpers/otp/otp-service.ts index f63057b..9b0e33e 100644 --- a/src/core/helpers/otp/otp-service.ts +++ b/src/core/helpers/otp/otp-service.ts @@ -50,9 +50,8 @@ export class OtpService { this.hasRepeatedDigits(otp) || this.isPalindrome(otp) || this.hasPartiallyRepeatedDigits(otp) || - otp?.split('')?.length < this.otpLength + otp?.length < this.otpLength ); - return otp; } } -- 2.40.1