From 1566b669704cb3c6b40978b7fa50469e125209ea Mon Sep 17 00:00:00 2001 From: Ryan Lynch Date: Wed, 3 Jan 2024 01:22:09 +0000 Subject: [PATCH] Fix validation --- src/pdf-generator/GeneratorUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdf-generator/GeneratorUtils.ts b/src/pdf-generator/GeneratorUtils.ts index 96a960a..e7d1dc5 100644 --- a/src/pdf-generator/GeneratorUtils.ts +++ b/src/pdf-generator/GeneratorUtils.ts @@ -1,5 +1,5 @@ export const validateGoals = (goals: string[]) => { - if (!goals || !goals.length || goals.length != 16) { + if (!goals || !goals.length || goals.length !== 16) { throw new Error('Invalid goals, received goals: ' + goals); } return goals;