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:
parent
2676c9c2ec
commit
e51af704cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue