Skip to content

Commit

Permalink
Removing console.log statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldhuereca committed Oct 26, 2023
1 parent 81b6a91 commit 7038a55
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/js/react/views/Integrations/Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ const Plugin = ( props ) => {
// Response is a mixture of HTML and JSON, let's extract json.
const jsonRegex = /({[^}]+}})/;
const responseData = response.data;
console.log( responseData );
const matches = responseData.match( jsonRegex );
if ( matches ) {
const { data, success } = JSON.parse( matches[ 0 ] );
console.log( data );
if ( success ) {
setInstalled( true );
}
Expand Down

0 comments on commit 7038a55

Please sign in to comment.