File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
components/NewfoldInterfaceSkeleton/SiteBuild Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -389,12 +389,16 @@ const SiteBuild = () => {
389
389
const trackInstaWpMigrationEvent = ( ) => {
390
390
if ( currentStep ?. path === stepSiteGenMigration ?. path ) {
391
391
if ( instaWpMigrationUrl ) {
392
- getWPSettings ( ) . then ( ( res ) => sendOnboardingEvent (
393
- new OnboardingEvent (
394
- res . nfd_migrate_site ? ACTION_MFE_MIGRATION_INITIATED : ACTION_MIGRATION_INITIATED ,
395
- instaWpMigrationUrl
392
+ getWPSettings ( ) . then ( ( res ) =>
393
+ sendOnboardingEvent (
394
+ new OnboardingEvent (
395
+ res . nfd_migrate_site
396
+ ? ACTION_MFE_MIGRATION_INITIATED
397
+ : ACTION_MIGRATION_INITIATED ,
398
+ instaWpMigrationUrl
399
+ )
396
400
)
397
- ) ) ;
401
+ ) ;
398
402
}
399
403
}
400
404
} ;
Original file line number Diff line number Diff line change 1
1
import { HiiveAnalytics } from '@newfold/js-utility-ui-analytics' ;
2
- import data from "@wordpress/data" ; // added to keep dependency for js-utility-ui-analytics
2
+ // eslint-disable-next-line import/default
3
+ import data from '@wordpress/data' ; // added to keep dependency for js-utility-ui-analytics
3
4
import { ACTION_TO_LABEL_KEY_MAP } from './constants' ;
4
5
5
6
export const trackOnboardingEvent = ( onboardingEvent ) => {
You can’t perform that action at this time.
0 commit comments