Skip to content

Commit

Permalink
Update prompts.ts
Browse files Browse the repository at this point in the history
Update actions.ts
  • Loading branch information
EvanBacon committed Jan 27, 2022
1 parent e5c5d0e commit d20c928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/expo/cli/utils/prompts.ts
Expand Up @@ -68,6 +68,7 @@ export async function confirmAsync(
return value ?? null;
}

/** Select an option from a list of options. */
export async function selectAsync<T>(
message: string,
choices: ExpoChoice<T>[],
Expand Down
5 changes: 1 addition & 4 deletions packages/expo/cli/utils/user/actions.ts
Expand Up @@ -76,10 +76,7 @@ export async function showLoginPromptAsync({

/** Ensure the user is logged in, if not, prompt to login. */
export async function ensureLoggedInAsync(): Promise<Actor> {
let user: Actor | undefined;
try {
user = await getUserAsync();
} catch {}
let user = await getUserAsync().catch(() => null);

if (!user) {
Log.warn(chalk.yellow`An Expo user account is required to proceed.`);
Expand Down

0 comments on commit d20c928

Please sign in to comment.