Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manikantakailasa committed Jun 14, 2024
1 parent 42ad1e9 commit de7aab7
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 de7aab7

Please sign in to comment.