From 84e245f1748970c53d3c84b210ecaad9f4dc6c8b Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 30 Jan 2023 16:40:54 +0100 Subject: [PATCH] finish fixing LearnEth hometab issue --- libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx index 1765452d80..fba56d8030 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx @@ -41,11 +41,11 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { const goToLearnEthHome = async () => { console.log({ plugin }) - if(plugin.appManager.isActive('LearnEth')) { + if(await plugin.appManager.isActive('LearnEth')) { plugin.verticalIcons.select('LearnEth') await plugin.call('LearnEth', 'home') } else { - await plugin.appManager.activatePlugin(['learnEth', 'solidity', 'solidityUnitTesting']) + await plugin.appManager.activatePlugin(['LearnEth', 'solidity', 'solidityUnitTesting']) plugin.verticalIcons.select('LearnEth') await plugin.call('LearnEth', 'home') }