From 91d30455957aadbabf3fc131fc9b460db20fbb01 Mon Sep 17 00:00:00 2001 From: Alan Jean Date: Wed, 1 Feb 2023 23:00:00 +0400 Subject: [PATCH] fix(website): fix display of task instruction Fixes the misuse of the i18n lib which caused the task instruction not to appear above the response text-area when an 'instruction' translation key exists for the current task. Fixes #1058 --- website/src/components/Tasks/CreateTask.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/components/Tasks/CreateTask.tsx b/website/src/components/Tasks/CreateTask.tsx index 04f840e4..8d406fd7 100644 --- a/website/src/components/Tasks/CreateTask.tsx +++ b/website/src/components/Tasks/CreateTask.tsx @@ -49,9 +49,9 @@ export const CreateTask = ({ <> - {!!i18n.exists(`task.${taskType.id}.instruction`) && ( + {!!i18n.exists(`tasks:${taskType.id}.instruction`) && ( - {t(getTypeSafei18nKey(`${taskType.id}.instruction`))} + {t(getTypeSafei18nKey(`tasks:${taskType.id}.instruction`))} )}