Skip to content

Commit

Permalink
eslint fix for social media component
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Jun 10, 2024
1 parent 4fd53ef commit 499ea98
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 {

Check failure on line 20 in src/app/pages/settings/socialMediaAccounts.js

View workflow job for this annotation

GitHub Actions / ESLint

Delete `·`
setLoginInfo( res );
}
} );
};

Expand Down

0 comments on commit 499ea98

Please sign in to comment.