fix for setting reset

pull/2637/head
Aniket-Engg 3 years ago committed by Aniket
parent 84d7d8b48b
commit c70d558ad4
  1. 2
      libs/remix-ui/run-tab/src/lib/components/recorderCardUI.tsx

@ -17,7 +17,7 @@ export function RecorderUI (props: RecorderProps) {
}
useEffect(() => {
if (props.currentFile.endsWith('.json')) setEnableRunButton(false)
if (props.currentFile && props.currentFile.endsWith('.json')) setEnableRunButton(false)
else setEnableRunButton(true)
}, [props.currentFile])

Loading…
Cancel
Save