From 9e0cc503cdfffbbb42db36da85b5deeaf7a5f1a0 Mon Sep 17 00:00:00 2001 From: MC2b6 Date: Fri, 8 Nov 2024 01:19:00 -0600 Subject: [PATCH] fix(MacroGoal): fix delete goal --- src/components/Home/MacroGoal.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Home/MacroGoal.jsx b/src/components/Home/MacroGoal.jsx index e206bb6..e75e051 100644 --- a/src/components/Home/MacroGoal.jsx +++ b/src/components/Home/MacroGoal.jsx @@ -12,6 +12,10 @@ const MacroGoal = ({ macroGoal, macroGoalIndex }) => { navigate(`/goals/${macroGoalIndex}`) } + const handleDeleteClick = (event) => { + event.stopPropagation() // Prevents the onClick from triggering navigation + } + return ( { {macroGoal.name} - +
+ +
)