Solved some bugs related to the payment page

This commit is contained in:
Tiago Ribeiro
2024-01-15 14:52:17 +00:00
parent b7b2dca2dd
commit e47607597c
4 changed files with 30 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ export default function PaymentDue({user, hasExpired = false, clientID, reload}:
if (userGroups.length === 0) return true;
const userGroupsAdminTypes = userGroups.map((g) => users?.find((u) => u.id === g.admin)?.type).filter((t) => !!t);
return userGroupsAdminTypes.every((t) => t !== "admin");
return userGroupsAdminTypes.every((t) => t !== "corporate");
};
return (