From 0ec49643ee1d95ce5fb324f0807c0f5f8b7ba0fa Mon Sep 17 00:00:00 2001 From: Geometrically Date: Sun, 3 Jan 2021 11:52:44 -0700 Subject: [PATCH] Fix teams --- pages/dashboard/notifications.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/dashboard/notifications.vue b/pages/dashboard/notifications.vue index f6e3303e7..a4d867756 100644 --- a/pages/dashboard/notifications.vue +++ b/pages/dashboard/notifications.vue @@ -54,12 +54,12 @@ export default { const invites = [] - for (let i = 0; i++; i < members.length) { - const owner = members[i].find((it) => it.role === 'Owner') + for (const member of members) { + const owner = member.find((it) => it.role === 'Owner') const ownerData = ( await axios.get( - `https://api.modrinth.com/api/v1/user/${owner.id}`, + `https://api.modrinth.com/api/v1/user/${owner.user_id}`, config ) ).data