From 0e96e024fcf33dd509be826e8281f43b52f42c96 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 24 Apr 2024 14:58:03 +0200 Subject: [PATCH] fix injected provider check --- libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 9362f1bcd8..b97aa2de4d 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -297,7 +297,7 @@ export function UniversalDappUI(props: UdappProps) { - {props.exEnvironment.indexOf('Injected Provider') > -1 && {props.editInstance(props.instance)}}>} + {props.exEnvironment && props.exEnvironment.startsWith('injected') > -1 && {props.editInstance(props.instance)}}>} { props.isPinnedContract && props.instance.pinnedAt ? (