Skip to content

Commit

Permalink
Merge pull request #1039 from HubSpot/br-fix-no-hubname-case
Browse files Browse the repository at this point in the history
Fixing init for accounts with no name
  • Loading branch information
brandenrodgers authored Apr 22, 2024
2 parents e81b6f7 + 693bfc4 commit d32d6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const personalAccessKeyConfigCreationFlow = async (env, account) => {

try {
const token = await getAccessToken(personalAccessKey, env);
const defaultName = toKebabCase(token.hubName);
const defaultName = token.hubName ? toKebabCase(token.hubName) : null;
const { name } = await enterAccountNamePrompt(defaultName);

updatedConfig = updateConfigWithAccessToken(
Expand Down

0 comments on commit d32d6cc

Please sign in to comment.