Skip to content

Commit f5f9cb5

Browse files
committed
activate relevant compiler plugin
1 parent 7d91960 commit f5f9cb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,16 +460,16 @@ export const TabsUI = (props: TabsUIProps) => {
460460
const errs = Array.isArray(fresh.errors) ? fresh.errors.filter((e: any) => (e.severity || e.type) === 'error') : []
461461
setCompileState(errs.length ? 'idle' : 'compiled')
462462
if (errs.length) {
463-
await props.plugin.call('manager', 'activatePlugin', 'solidity')
464-
await props.plugin.call('menuicons', 'select', 'solidity')
463+
await props.plugin.call('manager', 'activatePlugin', compilerName)
464+
await props.plugin.call('menuicons', 'select', compilerName)
465465
}
466466
settledSeqRef.current = mySeq
467467
return
468468
}
469469
}
470470
setCompileState('idle')
471-
await props.plugin.call('manager', 'activatePlugin', 'solidity')
472-
await props.plugin.call('menuicons', 'select', 'solidity')
471+
await props.plugin.call('manager', 'activatePlugin', compilerName)
472+
await props.plugin.call('menuicons', 'select', compilerName)
473473
settledSeqRef.current = mySeq
474474
try { props.plugin.off(compilerName, 'compilationFinished') } catch {}
475475
}, 3000)

0 commit comments

Comments
 (0)