Merge pull request #32926 from woocommerce/fix/32896_two_tasklists

Fix duplicate task list shown in some occurrences
This commit is contained in:
louwie17 2022-05-09 16:24:00 -03:00 committed by GitHub
commit bd5c1e739e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- Convert `use-user-preferences.js` to TS. #32695
- Added PaymentGateway type to exports #32697
- Add `@types/wordpress__compose`, `@types/wordpress__data`, `redux` types and fix related type errors. #32735
- Fix issue in `onboarding` data package for the unhide and hide success actions. #32926
## Breaking change

View File

@ -169,6 +169,7 @@ export function hideTaskListSuccess( taskList ) {
return {
type: TYPES.HIDE_TASK_LIST_SUCCESS,
taskList,
taskListId: taskList.id,
};
}
@ -191,6 +192,7 @@ export function unhideTaskListSuccess( taskList ) {
return {
type: TYPES.UNHIDE_TASK_LIST_SUCCESS,
taskList,
taskListId: taskList.id,
};
}

View File

@ -246,7 +246,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
if ( currentLocation !== homescreenLocation ) {
// Ensure that if the user is trying to get to the task list they can see it even if
// it was dismissed.
if ( setupTaskListHidden === 'no' ) {
if ( setupTaskListHidden === false ) {
redirectToHomeScreen();
} else {
unhideTaskList( 'setup' ).then( redirectToHomeScreen );

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Update finish setup button logic to adhere to new Task List data structure. #32926