Skip to content

Commit

Permalink
Merge pull request #496 from newfold-labs/fix/some-issue
Browse files Browse the repository at this point in the history
Fix Duplicate UseEffect
  • Loading branch information
officiallygod authored Feb 28, 2024
2 parents 1473d95 + d64019d commit e87b1e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ const ThemedNewfoldInterfaceSkeleton = themeToggleHOC(

const SiteGen = () => {
const [ failedApi, setFailedApi ] = useState( [] );

useEffect( () => {
document.body.classList.add( `nfd-brand-${ newfoldBrand }` );
}, [ newfoldBrand ] );
const location = useLocation();

const {
Expand Down
2 changes: 1 addition & 1 deletion src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const SiteGenSiteLogo = () => {
setSiteLogo( undefined );
setIsFooterNavAllowed( false );
trackOnboardingEvent(
new OnboardingEvent( ACTION_SITEGEN_LOGO_SKIPPED, {
new OnboardingEvent( ACTION_SITEGEN_LOGO_SKIPPED, undefined, {
source: SITEGEN_FLOW,
} )
);
Expand Down
10 changes: 7 additions & 3 deletions src/OnboardingSPA/steps/SiteGen/SocialMedia/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ const SiteGenSiteSocialMedia = () => {

const trackSkipEvent = () => {
trackOnboardingEvent(
new OnboardingEvent( ACTION_SITEGEN_SOCIAL_CONNECT_SKIPPED, {
source: SITEGEN_FLOW,
} )
new OnboardingEvent(
ACTION_SITEGEN_SOCIAL_CONNECT_SKIPPED,
undefined,
{
source: SITEGEN_FLOW,
}
)
);
};

Expand Down

0 comments on commit e87b1e3

Please sign in to comment.