From e51af704cdc9bee9b13f49292f24e6386878b30d Mon Sep 17 00:00:00 2001 From: Suhail <63963181+BreadGenie@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:19:42 +0530 Subject: [PATCH] fix(billing): better check for `setup_complete` (#33475) Earlier we used to have 1 or 0, but now it returns `true` or `false`. Changing the code so that it can support both cases. --- frappe/public/js/billing.bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/billing.bundle.js b/frappe/public/js/billing.bundle.js index bf0b95cfa6..6c366e6055 100644 --- a/frappe/public/js/billing.bundle.js +++ b/frappe/public/js/billing.bundle.js @@ -4,7 +4,7 @@ let isFCUser = false; $(document).ready(function () { if ( frappe.boot.is_fc_site && - frappe.boot.setup_complete === 1 && + !!frappe.boot.setup_complete && !frappe.is_mobile() && frappe.user.has_role("System Manager") ) {