Skip to content

Commit

Permalink
fix: console warning for useEffect on plugins page (#9913)
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso authored Dec 10, 2024
1 parent 15e7ef8 commit 0ea8272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/fix-use-effect-console-warning
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: fix: console warning on plugins page


4 changes: 2 additions & 2 deletions client/plugins-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ const PluginsPage = () => {
useEffect( () => {
// If the survey is dismissed skip event listeners.
if ( isModalDismissed() ) {
return null;
return;
}

// Abort if the deactivation link is not present.
if ( deactivationLink === null ) {
return null;
return;
}

// Handle click event.
Expand Down

0 comments on commit 0ea8272

Please sign in to comment.