File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
assets/apps/dashboard/src/Components Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11/* global neveDash */
22
33const Deal = ( ) => {
4+ if ( 1 < neveDash ?. license ?. tier ) {
5+ return < > </ > ;
6+ }
7+
48 if (
59 ! Boolean ( window . neveDash ?. deal ?. active ) ||
610 ! Boolean ( neveDash ?. deal ?. bannerUrl ) ||
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ private function get_localization() {
384384 'getPluginStateBaseURL ' => esc_url ( rest_url ( '/nv/v1/dashboard/plugin-state/ ' ) ),
385385 'canInstallPlugins ' => current_user_can ( 'install_plugins ' ),
386386 'canActivatePlugins ' => current_user_can ( 'activate_plugins ' ),
387- 'deal ' => ! defined ( ' NEVE_PRO_VERSION ' ) ? $ offer ->get_localized_data () : array (),
387+ 'deal ' => $ offer ->get_localized_data (),
388388 'rootUrl ' => get_site_url (),
389389 'daysSinceInstall ' => round ( ( time () - get_option ( 'neve_install ' , 0 ) ) / DAY_IN_SECONDS ),
390390 'proPluginVersion ' => defined ( 'NEVE_PRO_VERSION ' ) ? NEVE_PRO_VERSION : '' ,
You can’t perform that action at this time.
0 commit comments