From 77ec7ac2c5bdc9269306f871347eed9f76512ac1 Mon Sep 17 00:00:00 2001 From: Megha-Dev-19 Date: Thu, 4 Jan 2024 12:36:05 +0530 Subject: [PATCH] remove replace fn --- src/devhub/page/addon.jsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/devhub/page/addon.jsx b/src/devhub/page/addon.jsx index 5e9d2d25e..7ce8d6be8 100644 --- a/src/devhub/page/addon.jsx +++ b/src/devhub/page/addon.jsx @@ -90,12 +90,6 @@ const ButtonRow = styled.div` const [view, setView] = useState(props.view || "viewer"); -// TODO : remove after contract data change -function updateWidgetEndpoint(widgetSrc) { - widgetSrc = widgetSrc.replace("configurator", "Configurator"); - return widgetSrc.replace("devgovgigs.near", "devhub.near"); -} - return ( {permissions.can_configure && ( @@ -112,7 +106,7 @@ return ( {view === "configure" ? ( ) : (