Get email prefill to avoid infinite loading state (https://github.com/woocommerce/woocommerce-admin/pull/7612)

This commit is contained in:
Joshua T Flowers 2021-09-13 11:36:44 -04:00 committed by GitHub
parent b5ccd3acf8
commit 4c0939288e
1 changed files with 2 additions and 1 deletions

View File

@ -448,6 +448,7 @@ export default compose(
const { isResolving } = select( OPTIONS_STORE_NAME );
const profileItems = getProfileItems();
const emailPrefill = getEmailPrefill();
const { general: settings = {} } = getSettings( 'general' );
const isBusy =
@ -483,7 +484,7 @@ export default compose(
storeEmail:
typeof profileItems.store_email === 'string'
? profileItems.store_email
: getEmailPrefill(),
: emailPrefill,
};
return {