From e6009933db67de3d40cdbac87104858471dd7023 Mon Sep 17 00:00:00 2001 From: rjmacarthy Date: Fri, 27 Jan 2023 10:16:25 +0000 Subject: [PATCH] Rename const to taskInfo --- website/src/components/TaskPage/TaskPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/components/TaskPage/TaskPage.tsx b/website/src/components/TaskPage/TaskPage.tsx index 9fc26c42..41d89405 100644 --- a/website/src/components/TaskPage/TaskPage.tsx +++ b/website/src/components/TaskPage/TaskPage.tsx @@ -16,7 +16,7 @@ export const TaskPage = ({ type }: TaskPageProps) => { const { t } = useTranslation(["tasks", "common"]); const apiHook = apiHooksByType[type]; const { tasks, isLoading, reset, trigger, error } = apiHook(type); - const taskType = TaskInfos.find((taskType) => taskType.type === type); + const taskInfo = TaskInfos.find((taskType) => taskType.type === type); if (isLoading) { return ; @@ -31,8 +31,8 @@ export const TaskPage = ({ type }: TaskPageProps) => { return ( <> - {t(getTypeSafei18nKey(`${taskType.id}.label`))} - + {t(getTypeSafei18nKey(`${taskInfo.id}.label`))} +