Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Fix fresh start with file opened
Browse files Browse the repository at this point in the history
Signed-off-by: Eduard Lataretu <[email protected]>
  • Loading branch information
elataret committed May 9, 2024
1 parent 0afbde0 commit 67f3e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/src/features/Plugin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const Plugin: React.FC = () => {
}, [setHashDir])

useEffect(() => {
if (!isLoaded) return
if (isValidSolidity) {
remixClient.emit('statusChanged', {
key: 'succeed',
Expand All @@ -64,7 +65,7 @@ const Plugin: React.FC = () => {
title: 'Please open a solidity file to compile'
})
}
}, [remixClient, isValidSolidity, currentFilename])
}, [remixClient, isValidSolidity, currentFilename, isLoaded])

// Deployment Context state variables
const { isDeploying, deployStatus } = useAtomValue(deploymentAtom)
Expand Down

0 comments on commit 67f3e11

Please sign in to comment.