Skip to content

Commit

Permalink
Fix eslint issue socialMediaAccounts.js
Browse files Browse the repository at this point in the history
Even though this issue is not related to this PR. fixing it here anyway.
  • Loading branch information
wpalani committed Jun 18, 2024
1 parent b3236e8 commit d73be54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/pages/settings/socialMediaAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
} );
};

Expand Down

0 comments on commit d73be54

Please sign in to comment.