Skip to content

Commit

Permalink
Fix invalid notification
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov committed Jan 30, 2024
1 parent 21ebb93 commit f282046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/remix-ui/workspace/src/lib/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React.
filePathToOpen = filePath
}
})
plugin.call('notification', 'toast', `Added ${count} verified contract${count === 1 ? '' : 's'} from ${foundOnNetworks.join(',')} network${foundOnNetworks.length === 1 ? '' : 's'} of Etherscan for contract address ${contractAddress} !!`)
plugin.call('notification', 'toast', `Added ${count} verified contract${count === 1 ? '': 's'} from ${blockscoutUrl} network for contract address ${contractAddress} !!`)
} catch (error) {
await basicWorkspaceInit(workspaces, workspaceProvider)
}
Expand Down Expand Up @@ -209,7 +209,7 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React.
} else {
_paq.push(['trackEvent', 'Storage', 'error', `Workspace in localstorage not found: ${localStorage.getItem("currentWorkspace")}`])
await basicWorkspaceInit(workspaces, workspaceProvider)
}
}
} else {
await basicWorkspaceInit(workspaces, workspaceProvider)
}
Expand Down

0 comments on commit f282046

Please sign in to comment.