Skip to content

Commit

Permalink
feature: validate admin screen
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh committed Mar 11, 2025
1 parent b9b1b2e commit e75b2bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Promotions/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private function bootPluginUpsells()
Hooks::addAction('admin_enqueue_scripts', WelcomeBanner::class, 'loadScripts');
}

(new CampaignsWelcomeBanner)->render();
if (is_admin()) {
(new CampaignsWelcomeBanner)->render();
}
}

/**
Expand Down

0 comments on commit e75b2bd

Please sign in to comment.