CLASSROOMIO-T-29: Limit org to one

Co-authored-by: Rotimi Best <[email protected]>

Merge-request: CLASSROOMIO-MR-4
Merged-by: Digdippa Team <[email protected]>
This commit is contained in:
Rotimi Best
2023-04-22 20:00:37 +00:00
committed by Space Cloud
co-authored by Rotimi Best
parent ae0462219b
commit cfeaa17846
9 changed files with 76 additions and 49 deletions
+2
View File
@@ -23,6 +23,8 @@ export async function getOrganizations(userId) {
orgsArray.push({
id: orgMember?.organization?.id,
name: orgMember?.organization?.name,
shortName:
orgMember?.organization?.name?.substring(0, 2)?.toUpperCase() || '',
siteName: orgMember?.organization?.siteName,
});
});