This commit is contained in:
Jonathan Summers-Muir authored and Joshen Lim committed 2022-12-19 16:33:20 +07:00
1 parent 58a02a219d
commit 52f074812f
1 file changed
+1 -1
+1 -1
View File
@@ -184,7 +184,7 @@ export default class UiStore implements IUiStore {
// dangerous use of string here
// to do, refactor so that changing the role name does not fail this check
// if role name does change, then user will simply not be able to leave project as a 'owner' regardless
return role && role.name === 'Owner'
return role && role.name === 'Owner' && !member.invited_at
})
console.log('membersWhoAreOwners', membersWhoAreOwners)