diff --git a/src/app/pages/pages-and-posts/bookingAndAppointments.js b/src/app/pages/pages-and-posts/bookingAndAppointments.js index fcf6484e1..0e97ab57a 100644 --- a/src/app/pages/pages-and-posts/bookingAndAppointments.js +++ b/src/app/pages/pages-and-posts/bookingAndAppointments.js @@ -34,14 +34,30 @@ const BookingAndAppointments = () => { ) }

-
- - { __( 'View all', 'wp-plugin-bluehost' ) } - - - - -
+ { window.NewfoldRuntime.isYithBookingActive && + window.NewfoldRuntime.isWoocommerceActive ? ( + <> + + { __( 'View all', 'wp-plugin-bluehost' ) } + + + + + + ) : ( + + ) } ); }; diff --git a/src/app/pages/pages-and-posts/index.js b/src/app/pages/pages-and-posts/index.js index ea359e715..be0c87436 100644 --- a/src/app/pages/pages-and-posts/index.js +++ b/src/app/pages/pages-and-posts/index.js @@ -77,10 +77,7 @@ const PagesAndPosts = () => { { window.NewfoldRuntime.isWoocommerceActive && ( ) } - { window.NewfoldRuntime.isYithBookingActive && - window.NewfoldRuntime.isWoocommerceActive && ( - - ) } + 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 ); + } } ); };