diff --git a/assets/source/catalog-sync/App.js b/assets/source/catalog-sync/App.js index 26c5c20a5..1ce573175 100644 --- a/assets/source/catalog-sync/App.js +++ b/assets/source/catalog-sync/App.js @@ -46,16 +46,14 @@ import { useSettingsSelect } from '../setup-guide/app/helpers/effects'; const CatalogSyncApp = () => { const adsCampaignIsActive = useSettingsSelect()?.ads_campaign_is_active; - const couponRedeemErrorID = useSettingsSelect()?.account_data - ?.coupon_redeem_info?.error_id; + const couponRedeemErrorID = + useSettingsSelect()?.account_data?.coupon_redeem_info?.error_id; useCreateNotice( wcSettings.pinterest_for_woocommerce.error ); - const [ isOnboardingModalOpen, setIsOnboardingModalOpen ] = useState( - false - ); - const [ isAdCreditsNoticeOpen, setIsAdCreditsNoticeOpen ] = useState( - false - ); + const [ isOnboardingModalOpen, setIsOnboardingModalOpen ] = + useState( false ); + const [ isAdCreditsNoticeOpen, setIsAdCreditsNoticeOpen ] = + useState( false ); const userInteractions = useSelect( ( select ) => select( USER_INTERACTION_STORE_NAME ).getUserInteractions() diff --git a/assets/source/catalog-sync/components/OnboardingModals/OnboardingErrorModal.js b/assets/source/catalog-sync/components/OnboardingModals/OnboardingErrorModal.js index c631ccfe9..d304adffc 100644 --- a/assets/source/catalog-sync/components/OnboardingModals/OnboardingErrorModal.js +++ b/assets/source/catalog-sync/components/OnboardingModals/OnboardingErrorModal.js @@ -29,8 +29,8 @@ const OnboardingErrorModal = ( { onCloseModal } ) => { const NOT_AVAILABLE_IN_COUNTRY_OR_CURRENCY_ERROR = 2327; const WRONG_BILLING_PROFILE_ERROR = 2006; - const couponRedeemInfo = useSettingsSelect()?.account_data - ?.coupon_redeem_info; + const couponRedeemInfo = + useSettingsSelect()?.account_data?.coupon_redeem_info; let errorMessageText = ''; switch ( couponRedeemInfo?.error_id ) { diff --git a/assets/source/catalog-sync/components/OnboardingModals/index.js b/assets/source/catalog-sync/components/OnboardingModals/index.js index 0553ef2c5..72a6b7f20 100644 --- a/assets/source/catalog-sync/components/OnboardingModals/index.js +++ b/assets/source/catalog-sync/components/OnboardingModals/index.js @@ -16,8 +16,8 @@ import OnboardingErrorModal from './OnboardingErrorModal'; */ const OnboardingModals = ( { onCloseModal } ) => { const adsCampaignIsActive = useSettingsSelect()?.ads_campaign_is_active; - const couponRedeemInfo = useSettingsSelect()?.account_data - ?.coupon_redeem_info; + const couponRedeemInfo = + useSettingsSelect()?.account_data?.coupon_redeem_info; // Generic modal when there is no campaign. if ( ! adsCampaignIsActive ) { diff --git a/assets/source/catalog-sync/sections/SyncState.js b/assets/source/catalog-sync/sections/SyncState.js index c5093ed01..b08f4481e 100644 --- a/assets/source/catalog-sync/sections/SyncState.js +++ b/assets/source/catalog-sync/sections/SyncState.js @@ -41,8 +41,9 @@ const SyncState = () => { select( REPORTS_STORE_NAME ).getFeedState() ); - const hasAvailableCredits = useSettingsSelect()?.account_data - ?.available_discounts?.marketing_offer?.remaining_discount; + const hasAvailableCredits = + useSettingsSelect()?.account_data?.available_discounts?.marketing_offer + ?.remaining_discount; const availableCredits = sprintf( /* translators: %s credits value with currency formatted using wc_price */ diff --git a/assets/source/components/prelaunch-notice/index.js b/assets/source/components/prelaunch-notice/index.js index d93beb9f8..0321b4bee 100644 --- a/assets/source/components/prelaunch-notice/index.js +++ b/assets/source/components/prelaunch-notice/index.js @@ -37,9 +37,8 @@ const PrelaunchNotice = () => {
{
recordEvent( 'pfw_account_disconnect_button_click', { context } );
diff --git a/assets/source/setup-guide/app/components/SyncSettings/index.js b/assets/source/setup-guide/app/components/SyncSettings/index.js
index 16f939e01..d71a3c75b 100644
--- a/assets/source/setup-guide/app/components/SyncSettings/index.js
+++ b/assets/source/setup-guide/app/components/SyncSettings/index.js
@@ -30,9 +30,8 @@ const SyncSettings = () => {
const syncAppSettings = useSyncSettingsDispatch();
const createNotice = useCreateNotice();
const { removeNotice } = useDispatch( 'core/notices' );
- const [ triggeredSyncSettings, setTriggeredSyncSettings ] = useState(
- false
- );
+ const [ triggeredSyncSettings, setTriggeredSyncSettings ] =
+ useState( false );
const syncSettings = async () => {
try {
diff --git a/assets/source/setup-guide/app/components/UnsupportedCountryNotice/index.js b/assets/source/setup-guide/app/components/UnsupportedCountryNotice/index.js
index 10db4e080..5c741ebbe 100644
--- a/assets/source/setup-guide/app/components/UnsupportedCountryNotice/index.js
+++ b/assets/source/setup-guide/app/components/UnsupportedCountryNotice/index.js
@@ -63,9 +63,8 @@ function UnsupportedCountryNotice( { countryCode } ) {
supportedCountriesLink: (