From c1d77aeaedf390e142e47b7ca987d2625cd0bfd6 Mon Sep 17 00:00:00 2001 From: Vinay Badgujar Date: Tue, 12 Nov 2024 16:26:56 +0530 Subject: [PATCH] fix: backticks not being removed for code snippet --- src/components/GoalsComponents/MyGoal/components/GoalTitle.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/GoalsComponents/MyGoal/components/GoalTitle.tsx b/src/components/GoalsComponents/MyGoal/components/GoalTitle.tsx index 2a028e14e..d8d9decb2 100644 --- a/src/components/GoalsComponents/MyGoal/components/GoalTitle.tsx +++ b/src/components/GoalsComponents/MyGoal/components/GoalTitle.tsx @@ -51,10 +51,11 @@ const GoalTitle = ({ goal, isImpossible }: GoalTitleProps) => { const renderTextPart = (part: string) => { const cleanPart = removeBackTicks(part); + console.log(cleanPart); const match = cleanPart.match(/zURL-(\d+)/); if (!match) { - return {part}; + return {cleanPart}; } const urlIndex = parseInt(match[1], 10);