From ddf165c0c3d1a36f4f3c5be77e7b3378e4d0c4a9 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Sun, 5 Nov 2023 23:17:28 +0100 Subject: [PATCH] fix(web): ESLint warnings --- frontend/web/app/dashboard/services/page.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/web/app/dashboard/services/page.tsx b/frontend/web/app/dashboard/services/page.tsx index 7a4ae01e..a2054a01 100644 --- a/frontend/web/app/dashboard/services/page.tsx +++ b/frontend/web/app/dashboard/services/page.tsx @@ -57,15 +57,15 @@ const ServiceLine = ({
  • { - t(("areaTranslations." + action.id).replace(/-/g, "_")) === (("areaTranslations." + action.id).replace(/-/g, "_")) + t((`areaTranslations.${ action.id}`).replace(/-/g, "_")) === ((`areaTranslations.${ action.id}`).replace(/-/g, "_")) ? action.id - : t(("areaTranslations." + action.id).replace(/-/g, "_"))} + : t((`areaTranslations.${ action.id}`).replace(/-/g, "_"))}

    { - t(("areaTranslations." + action.id + "_sub").replace(/-/g, "_")) === (("areaTranslations." + action.id + "_sub").replace(/-/g, "_")) + t((`areaTranslations.${ action.id }_sub`).replace(/-/g, "_")) === ((`areaTranslations.${ action.id }_sub`).replace(/-/g, "_")) ? action.description - : t(("areaTranslations." + action.id + "_sub").replace(/-/g, "_"))} + : t((`areaTranslations.${ action.id }_sub`).replace(/-/g, "_"))}

  • ))} @@ -80,15 +80,15 @@ const ServiceLine = ({
  • { - t(("areaTranslations." + reaction.id).replace(/-/g, "_")) === (("areaTranslations." + reaction.id).replace(/-/g, "_")) + t((`areaTranslations.${ reaction.id}`).replace(/-/g, "_")) === ((`areaTranslations.${ reaction.id}`).replace(/-/g, "_")) ? reaction.id - : t(("areaTranslations." + reaction.id).replace(/-/g, "_"))} + : t((`areaTranslations.${ reaction.id}`).replace(/-/g, "_"))}

    { - t(("areaTranslations." + reaction.id + "_sub").replace(/-/g, "_")) === (("areaTranslations." + reaction.id + "_sub").replace(/-/g, "_")) + t((`areaTranslations.${ reaction.id }_sub`).replace(/-/g, "_")) === ((`areaTranslations.${ reaction.id }_sub`).replace(/-/g, "_")) ? reaction.description - : t(("areaTranslations." + reaction.id + "_sub").replace(/-/g, "_"))} + : t((`areaTranslations.${ reaction.id }_sub`).replace(/-/g, "_"))}

  • ))}