diff --git a/src/app/pages/settings/socialMediaAccounts.js b/src/app/pages/settings/socialMediaAccounts.js index 36369c30c..b4c6f203a 100644 --- a/src/app/pages/settings/socialMediaAccounts.js +++ b/src/app/pages/settings/socialMediaAccounts.js @@ -15,8 +15,11 @@ const SocialMediaAccounts = () => { const getFbDetails = () => { getFacebookUserProfileDetails().then( ( res ) => { setFbLogin( res === 'token not found!' ? false : true ); - if ( Array.isArray( res ) ) setLoginInfo( res[ 0 ] ); - else setLoginInfo( res ); + if ( Array.isArray( res ) ) { + setLoginInfo( res[ 0 ] ); + } else { + setLoginInfo( res ); + } } ); };