diff --git a/src/OnboardingSPA/steps/SiteGen/SocialMedia/index.js b/src/OnboardingSPA/steps/SiteGen/SocialMedia/index.js index 1abae0717..c9e7a627f 100644 --- a/src/OnboardingSPA/steps/SiteGen/SocialMedia/index.js +++ b/src/OnboardingSPA/steps/SiteGen/SocialMedia/index.js @@ -78,7 +78,11 @@ const SiteGenSiteSocialMedia = () => { setConnected( true ); }; - const handleFailure = () => { + const handleFailure = ( error ) => { + // This happens when a call is made to retrieve the facebook details when the button first renders. + if ( 404 === error?.data?.status ) { + return; + } updateSiteGenErrorStatus( true ); };