From ff8e42636f942515ceb14cbf80abc4200483e8e5 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Wed, 11 Jan 2023 17:58:39 +0530 Subject: [PATCH] add dep in useeffect --- libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx b/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx index 411ccfa9d6..328797acf3 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx @@ -43,7 +43,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => { const hide = await api.getAppParameter('hideWarnings') as boolean || false setHideWarnings(hide) })() - }) + }, [compileErrors]) useEffect(() => { if (badgeStatus[currentFile]) {