renamed variable name

pull/3591/head
Joseph Izang 2 years ago committed by Aniket
parent 4e8df72327
commit 6b562b18c1
  1. 6
      apps/doc-gen/src/app/docgen-client.ts

@ -48,9 +48,9 @@ export class DocGenClient extends PluginClient {
input: input,
output: output
}
const test = normalizeContractPath(fileName)
this.fileName = typeof test === 'string' ? test : test[test.length - 1]
this.contractPath = typeof test === 'object' ? test[0] : ''
const segmentedPathList = normalizeContractPath(fileName)
this.fileName = segmentedPathList[segmentedPathList.length - 1]
this.contractPath = segmentedPathList[0]
this.eventEmitter.emit('compilationFinished', this.build, this.fileName)
})
}

Loading…
Cancel
Save