From 5b65e5654994eb81bd9294e11ef33d353ba003e1 Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Thu, 2 Jan 2025 22:11:43 +0530 Subject: [PATCH] fixed deepscan issues --- src/containers/HSM/HSM.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/containers/HSM/HSM.tsx b/src/containers/HSM/HSM.tsx index e80faa96f..f6070df1d 100644 --- a/src/containers/HSM/HSM.tsx +++ b/src/containers/HSM/HSM.tsx @@ -444,23 +444,6 @@ export const HSM = () => { setSampleMessages(message); }; - const getTemplate = (text: string) => { - const { body } = sampleMessages; - /** - * Regular expression to check if message contains given pattern - * If pattern is present search will return first index of given pattern - * otherwise it will return -1 - */ - const exp = /(\|\s\[)|(\|\[)/; - - const areButtonsPresent = body.search(exp); - if (areButtonsPresent > -1) { - const buttons = body.substr(areButtonsPresent); - return text + buttons; - } - return text; - }; - const handeInputChange = (event: any, row: any, index: any, eventType: any) => { const { value } = event.target; const obj = { ...row };