diff --git a/plugins/woocommerce-admin/client/header/activity-panel/index.js b/plugins/woocommerce-admin/client/header/activity-panel/index.js index 11ab5f61ac0..93940d8c7d7 100644 --- a/plugins/woocommerce-admin/client/header/activity-panel/index.js +++ b/plugins/woocommerce-admin/client/header/activity-panel/index.js @@ -416,9 +416,8 @@ export default compose( const requestingTaskListOptions = isResolving( 'getOption', [ 'woocommerce_task_list_complete' ] ) || isResolving( 'getOption', [ 'woocommerce_task_list_hidden' ] ); - const trackedCompletedTasks = getOption( - 'woocommerce_task_list_tracked_completed_tasks' - ); + const trackedCompletedTasks = + getOption( 'woocommerce_task_list_tracked_completed_tasks' ) || []; return { hasUnreadNotes, diff --git a/plugins/woocommerce-admin/client/task-list/index.js b/plugins/woocommerce-admin/client/task-list/index.js index 10cb4179234..f5df7f2ddcb 100644 --- a/plugins/woocommerce-admin/client/task-list/index.js +++ b/plugins/woocommerce-admin/client/task-list/index.js @@ -175,9 +175,8 @@ export default compose( } = select( PLUGINS_STORE_NAME ); const profileItems = getProfileItems(); - const trackedCompletedTasks = getOption( - 'woocommerce_task_list_tracked_completed_tasks' - ); + const trackedCompletedTasks = + getOption( 'woocommerce_task_list_tracked_completed_tasks' ) || []; const { general: generalSettings = {} } = getSettings( 'general' ); const countryCode = getCountryCode(