Lint again

This commit is contained in:
Ilyas Foo 2023-08-14 13:42:00 +08:00
parent 4a04d19b60
commit 6be7c4b5e3
1 changed files with 7 additions and 7 deletions

View File

@ -41,8 +41,8 @@ export const StoreLocation: React.FC< {
const { createNotice } = useDispatch( 'core/notices' );
const { updateAndPersistSettingsForGroup } =
useDispatch( SETTINGS_STORE_NAME );
const { generalSettings, isResolving, isUpdateSettingsRequesting } =
useSelect( ( select ) => {
const { generalSettings, isResolving, isUpdating } = useSelect(
( select ) => {
const {
getSettings,
hasFinishedResolution,
@ -54,21 +54,21 @@ export const StoreLocation: React.FC< {
isResolving: ! hasFinishedResolution( 'getSettings', [
'general',
] ),
isUpdateSettingsRequesting:
isUpdateSettingsRequesting( 'general' ),
isUpdating: isUpdateSettingsRequesting( 'general' ),
};
} );
}
);
useEffect( () => {
if (
isResolving ||
isUpdateSettingsRequesting ||
isUpdating ||
! hasCompleteAddress( generalSettings || {} )
) {
return;
}
nextStep();
}, [ isResolving, generalSettings, isUpdateSettingsRequesting ] );
}, [ isResolving, generalSettings, isUpdating ] );
if ( isResolving ) {
return null;