Skip to content

Commit

Permalink
Fix free plugin checks
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Oct 17, 2024
1 parent 889a796 commit a8d7b44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Installer/components/App/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const App = () => {

return (
<div className="nfd-installer-app">
{ pluginSlug && (
{ ( pluginSlug || pluginDownloadUrl ) && (
<Modal
action={ action }
pluginName={ pluginName }
Expand Down
2 changes: 1 addition & 1 deletion src/Scripts/dataAttrListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ domReady( () => {
el.getAttribute( 'data-nfd-installer-plugin-url' );

// Is free plugin
if ( el.hasAttribute( 'data-nfd-installer-download-url' ).length ) {
if ( el.hasAttribute( 'data-nfd-installer-download-url' ) ) {
dispatchEvent( {
action: 'installFreePlugin',
pluginName: el.getAttribute(
Expand Down

0 comments on commit a8d7b44

Please sign in to comment.