Skip to content

Commit

Permalink
fix squad association bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Feb 11, 2024
1 parent e37f824 commit 9493c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/logic/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ export class ApiClass {
if (memberInfo) {
member.squad = '';
if (memberInfo.squad_id) {
let squadInfo = complete_member_info.squads.find((s: any) => s.id === memberInfo.squadInfo);
member.squad_id = memberInfo.squad_id;
let squadInfo = complete_member_info.squads.find((s: any) => s.id === memberInfo.squad_id);
if (squadInfo) {
member.squad = squadInfo.name;
}
Expand Down

0 comments on commit 9493c3a

Please sign in to comment.