Skip to content

Commit

Permalink
Merge branch 'master' into revert-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
linneamyl authored Apr 27, 2023
2 parents ff66c94 + 42c44b8 commit e037a39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function getMemberData(groupMembers) {
{},
{
memberId: groupMember.id.id,
isGroupLeader: groupMember.is_leader,
isGroupLeader: groupMember.isLeader,
memberName:
groupMember.name.firstname + ' ' + groupMember.name.lastname,
memberTasks: taskEntries,
Expand Down Expand Up @@ -60,17 +60,17 @@ async function getAllGroups(userNumber) {
const memberData = await getMemberData(groupMembers)
const ageGroupId =
(memberData[0] &&
(await getMember(memberData[0].memberId)).age_groupId) ||
(await getMember(memberData[0].memberId)).ageGroupId) ||
4
return Object.assign(
{},
{
id: group.id,
name: group.name,
ageGroup: groupInfo.age_groups[0],
ageGroup: groupInfo.ageGroups[0],
ageGroupId,
troop: groupInfo.troops.filter(
(troop) => troop.id === member.default_troop_id
(troop) => troop.id === member.defaultTroopId
),
members: memberData,
}
Expand Down
2 changes: 1 addition & 1 deletion src/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function getProfile(userNumber) {
ageGroup: member.age_group || 'Sudenpennut',
language: 'fi',
troops: member.troops,
isLeader: member.is_leader || false,
isLeader: member.isLeader || false,
image: memberImage,
}
)
Expand Down

0 comments on commit e037a39

Please sign in to comment.