From 06a1e4843207b28492641ff69961fcdf02c49b54 Mon Sep 17 00:00:00 2001 From: Ilan Kushnir Date: Wed, 27 Nov 2024 11:30:20 +0200 Subject: [PATCH] fix: minor bug fix --- src/matchers/minLengthMatcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matchers/minLengthMatcher.ts b/src/matchers/minLengthMatcher.ts index 429a768..cd19178 100644 --- a/src/matchers/minLengthMatcher.ts +++ b/src/matchers/minLengthMatcher.ts @@ -12,7 +12,7 @@ export const minLengthMatcher = (minLength: number): Matcher => ({ }, feedback: options => { return { - warning: (options.translations.warnings.minLength = 'minLength'), + warning: options.translations.warnings.minLength || 'minLength', suggestions: [], }; },