From 47cfb63719ac8e80abce2b324683fe6f1cf00767 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 23 Dec 2022 21:19:01 -0800 Subject: [PATCH] Fix which value is fed into localization --- components/AxSelect/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/AxSelect/index.tsx b/components/AxSelect/index.tsx index 832cf1c7..d96198b9 100644 --- a/components/AxSelect/index.tsx +++ b/components/AxSelect/index.tsx @@ -250,7 +250,7 @@ const AXSelect = (props: Props) => { } else if (value > primaryAxSkill.maxValue) { newErrors.axValue1 = t('ax.errors.value_too_high', { name: primaryAxSkill.name[locale], - maxValue: primaryAxSkill.minValue, + maxValue: primaryAxSkill.maxValue, suffix: primaryAxSkill.suffix ? primaryAxSkill.suffix : '', }) } else if (!value || value <= 0) { @@ -285,7 +285,7 @@ const AXSelect = (props: Props) => { } else if (value > secondaryAxSkill.maxValue) { newErrors.axValue2 = t('ax.errors.value_too_high', { name: secondaryAxSkill.name[locale], - maxValue: secondaryAxSkill.minValue, + maxValue: secondaryAxSkill.maxValue, suffix: secondaryAxSkill.suffix ? secondaryAxSkill.suffix : '', }) } else if (!secondaryAxSkill.suffix && value % 1 !== 0) {