Skip to content

Commit 7c60813

Browse files
joeizangAniket-Engg
authored andcommitted
fix contractFolder condition
1 parent 6b562b1 commit 7c60813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/doc-gen/src/app/docgen-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class DocGenClient extends PluginClient {
5757

5858
async docgen(builds: Build[], userConfig?: Config): Promise<void> {
5959
const config = { ...defaults, ...userConfig }
60-
config.sourcesDir = this.contractPath.length > 0 ? this.contractPath : config.sourcesDir
60+
config.sourcesDir = this.contractPath !== config.sourcesDir ? this.contractPath : config.sourcesDir
6161
const templates = await loadTemplates(config.theme, config.root, config.templates)
6262
const site = buildSite(builds, config, templates.properties ?? {})
6363
const renderedSite = render(site, templates, config.collapseNewlines)

0 commit comments

Comments
 (0)