Skip to content

Commit

Permalink
fix: remove optional chaining in JS file (#7287)
Browse files Browse the repository at this point in the history
This syntax fails on older versions of Node.

Co-authored-by: Colin Ihrig <colihrig@amazon.com>
  • Loading branch information
cjihrig and cjihrig-aws authored May 7, 2021
1 parent 23fcfa5 commit abb64f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amplify-frontend-ios/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function handleAmplifyEvent(context, args) {
const projectPath = pathManager.findProjectRoot();
switch (args.event) {
case 'PostInit':
if (context.input?.options?.quickstart) {
if (context.input && context.input.options && context.input.options.quickstart) {
postInitQuickStart(projectPath);
}
await importConfig({ path: projectPath });
Expand Down

0 comments on commit abb64f6

Please sign in to comment.