diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index 5a81e11495..b30a88c0ad 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/apps/remix-ide/src/blockchain/blockchain.tsx @@ -120,8 +120,8 @@ export class Blockchain extends Plugin { onDeactivation() { this.active = false - for (const plugin of this.registeredPluginEvents) { - this.off(plugin, 'chainChanged') + for (const pluginName of this.registeredPluginEvents) { + this.off(pluginName, 'chainChanged') } }