diff --git a/packages/amplify-category-auth/src/provider-utils/awscloudformation/service-walkthroughs/auth-questions.js b/packages/amplify-category-auth/src/provider-utils/awscloudformation/service-walkthroughs/auth-questions.js index 38a9253046d..acbfe217e1d 100644 --- a/packages/amplify-category-auth/src/provider-utils/awscloudformation/service-walkthroughs/auth-questions.js +++ b/packages/amplify-category-auth/src/provider-utils/awscloudformation/service-walkthroughs/auth-questions.js @@ -415,7 +415,7 @@ function userPoolProviders(oAuthProviders, coreAnswers, prevAnswers) { if (answers.hostedUI) { res.hostedUIProviderMeta = JSON.stringify( oAuthProviders.map(el => { - const delimmiter = el === 'Facebook' || el === 'SignInWithApple' ? ',' : ' '; + const delimmiter = ['Facebook', 'SignInWithApple'].includes(el) ? ',' : ' '; const scopes = []; const maps = {}; attributesForMapping.forEach(a => {