Skip to content

Commit

Permalink
fix: don't show trial banner if subscription is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jul 8, 2024
1 parent 9c9b15b commit b2d6e6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions press/www/saas/billing.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ if (showFloatingBanner != null) {
}

$(document).ready(function () {
// check if setup complete
if (frappe.boot.setup_complete === 1 && banner && !frappe.is_mobile()) {
if (
frappe.boot.setup_complete === 1 &&
banner &&
!frappe.is_mobile() &&
frappe.boot.subscription_conf.status !== 'Subscribed'
) {
$('.layout-main-section').before($floatingBar);
}
});
Expand Down

0 comments on commit b2d6e6b

Please sign in to comment.