MED-177: add booking confirmation

This commit is contained in:
Danel Kungla
2025-10-01 18:55:53 +03:00
parent 0c5d38f274
commit f73bbf54ad
13 changed files with 215 additions and 2052 deletions

View File

@@ -65,18 +65,17 @@ async function loadAccountMembers(
const members = data ?? [];
return members
.sort((prev, next) => {
if (prev.primary_owner_user_id === prev.user_id) {
return -1;
}
return members.sort((prev, next) => {
if (prev.primary_owner_user_id === prev.user_id) {
return -1;
}
if (prev.role_hierarchy_level < next.role_hierarchy_level) {
return -1;
}
if (prev.role_hierarchy_level < next.role_hierarchy_level) {
return -1;
}
return 1;
});
return 1;
});
}
export async function loadAccountMembersBenefitsUsage(