Merge pull request #3092 from woocommerce/PCP-4176-things-to-do-add-pay-later-messaging-implement-logic-for-the-todo-item

Things To Do: Wire the Pay Later Messaging todo items
This commit is contained in:
Emili Castells 2025-02-11 15:13:50 +01:00 committed by GitHub
commit 9a52641121
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 182 additions and 71 deletions

View file

@ -49,10 +49,10 @@ const TodoSettingsBlock = ( {
await selectTab( tabId, todo.action.section );
} else if ( todo.action.type === 'external' ) {
window.open( todo.action.url, '_blank' );
// If it has completeOnClick flag, trigger the action
if ( todo.action.completeOnClick === true ) {
await completeOnClick( todo.id );
}
}
if ( todo.action.completeOnClick === true ) {
await completeOnClick( todo.id );
}
if ( todo.action.modal ) {