From 6c3c8afef1ad61bbe39b5d4b600cd4355b57bc98 Mon Sep 17 00:00:00 2001 From: Sandu Victor Date: Mon, 20 Jul 2020 12:51:40 +0300 Subject: [PATCH] fix: result can now also be equl to requirements --- .../api/src/modules/achievements/actions/compareRequirements.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/modules/achievements/actions/compareRequirements.ts b/packages/api/src/modules/achievements/actions/compareRequirements.ts index fbae007..fc8e45f 100644 --- a/packages/api/src/modules/achievements/actions/compareRequirements.ts +++ b/packages/api/src/modules/achievements/actions/compareRequirements.ts @@ -8,5 +8,5 @@ export default ( ) => { return typesafeKeys(base) .map(l => [base[l], head[l]]) - .every(l => l[1] > l[0]); + .every(l => l[1] >= l[0]); };