From d923dd04b5aa552535303723ee8367184e5e635a Mon Sep 17 00:00:00 2001 From: Mitch Talmadge Date: Fri, 2 Apr 2021 22:56:31 -0600 Subject: [PATCH] Fix email greeting out of bounds --- src/services/verification/verifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/verification/verifier.ts b/src/services/verification/verifier.ts index bca3455..490839e 100644 --- a/src/services/verification/verifier.ts +++ b/src/services/verification/verifier.ts @@ -29,7 +29,7 @@ export abstract class VerifierService { private static greetings = ["Hey", "Hi there", "Hiya", "Hello", "Howdy", "Aloha"]; private getRandomGreeting(): string { - return VerifierService.greetings[Math.floor(Math.random() * VerifierService.greetings.length - 1)]; + return VerifierService.greetings[Math.floor(Math.random() * VerifierService.greetings.length)]; } }