Skip to content

Commit c260db3

Browse files
authored
Merge pull request #522 from ProgressPlanner/filip/v16/dont-celebrate-wp-dashboard
Dont inject pending celebration on WP dashboard page
2 parents b59ea2c + 91189f1 commit c260db3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

assets/js/widgets/suggested-tasks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ const prplSuggestedTasksWidget = {
4242
);
4343
}
4444

45-
// Inject the pending celebration tasks.
45+
// Inject the pending celebration tasks, but only on Progress Planner dashboard page.
4646
if (
47+
! prplSuggestedTask.delayCelebration &&
4748
Object.keys( prplSuggestedTask.tasks.pendingCelebrationTasks )
4849
.length
4950
) {

0 commit comments

Comments
 (0)