Skip to content

Commit e850c9e

Browse files
authored
fix: use nullish coalescing operator in CreateScreen (#918)
1 parent 34b41e7 commit e850c9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/tui/screens/create/CreateScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function CreatedSummary({
173173
const isByo = agentConfig?.agentType === 'byo';
174174
const agentPath = isCreate ? `app/${agentConfig.name}/` : isByo ? agentConfig.codeLocation : null;
175175
const harnessPath = harnessConfig ? `harness/${harnessConfig.name}/` : null;
176-
const resourcePath = agentPath || harnessPath;
176+
const resourcePath = agentPath ?? harnessPath;
177177
const agentcorePath = 'agentcore/';
178178
const maxPathLen = resourcePath ? Math.max(resourcePath.length, agentcorePath.length) : agentcorePath.length;
179179

0 commit comments

Comments
 (0)