@ -50,7 +50,7 @@ module.exports = {
createNonClashingName (name, fileProvider, cb) {
this.createNonClashingNameWithPrefix(name, fileProvider, '', cb)
},
async checkNonClashingNameAsync (name, fileManager, prefix = '') {
async createNonClashingNameAsync (name, fileManager, prefix = '') {
if (!name) name = 'Undefined'
let counter = ''
let ext = 'sol'
@ -234,7 +234,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
const fileManager = state.fileManager
try {
const newName = await helper.checkNonClashingNameAsync(newFilePath, fileManager)
const newName = await helper.createNonClashingNameAsync(newFilePath, fileManager)
const createFile = await fileManager.writeFile(newName, '')
if (!createFile) {