From 2a308f11a0effe7a094b413ae3758be54e683f7d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 23 Sep 2024 17:28:32 +0530 Subject: [PATCH] feat: handle tagName & innerText in decision handler --- src/components/molecules/InterpretationButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/InterpretationButtons.tsx b/src/components/molecules/InterpretationButtons.tsx index 467f5cf9..0e6a9e2a 100644 --- a/src/components/molecules/InterpretationButtons.tsx +++ b/src/components/molecules/InterpretationButtons.tsx @@ -50,7 +50,7 @@ export const InterpretationButtons = ({ enableStepping }: InterpretationButtonsP const decisionHandler = useCallback( ({ pair, actionType, lastData } - : { pair: WhereWhatPair | null, actionType: string, lastData: { selector: string, action: string } }) => { + : { pair: WhereWhatPair | null, actionType: string, lastData: { selector: string, action: string, tagName: string, innerText: string } }) => { const { selector, action } = lastData; setDecisionModal((prevState) => { return {