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.
This commit is contained in:
Suhail 2025-07-29 12:19:42 +05:30 committed by GitHub
parent 2676c9c2ec
commit e51af704cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")
) {