Update pages/settings/teams.tsx
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
This commit is contained in:
		
							parent
							
								
									769f36f8d5
								
							
						
					
					
						commit
						b71cc82a0e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -26,7 +26,7 @@ export default function Teams() { | ||||||
|   const loadData = () => { |   const loadData = () => { | ||||||
|     fetch("/api/user/membership") |     fetch("/api/user/membership") | ||||||
|     .then(handleErrors) |     .then(handleErrors) | ||||||
|     .then((data) => { |       .then((data) => { | ||||||
|       setTeams(data.membership.filter((m) => m.role !== "INVITEE")); |       setTeams(data.membership.filter((m) => m.role !== "INVITEE")); | ||||||
|       setInvites(data.membership.filter((m) => m.role === "INVITEE")); |       setInvites(data.membership.filter((m) => m.role === "INVITEE")); | ||||||
|     }) |     }) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Mihai C
						Mihai C