Skip to content

Commit 7aeefe9

Browse files
bunsenstraatyann300
authored andcommitted
typo
1 parent 001924b commit 7aeefe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/remix-ide/src/app/plugins/script-runner-bridge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ export class ScriptRunnerBridgePlugin extends Plugin {
7979
})
8080

8181
this.plugin.on('fileManager', 'fileAdded', async (file: string) => {
82-
if (file === configFileName && file) {
82+
if (file && file === configFileName) {
8383
await this.loadCustomConfig()
8484
await this.loadConfigurations()
8585
this.renderComponent()
8686
}
8787
})
8888

8989
this.plugin.on('fileManager', 'fileSaved', async (file: string) => {
90-
if (file === configFileName && file) {
90+
if (file && file === configFileName) {
9191
await this.loadCustomConfig()
9292
await this.loadConfigurations()
9393
this.renderComponent()

0 commit comments

Comments
 (0)