diff --git a/src/app/modules/admin/member/partner-recommendation/components/list.component.html b/src/app/modules/admin/member/partner-recommendation/components/list.component.html
index 7dce47b..96a3cb2 100644
--- a/src/app/modules/admin/member/partner-recommendation/components/list.component.html
+++ b/src/app/modules/admin/member/partner-recommendation/components/list.component.html
@@ -209,7 +209,7 @@
상위 |
- {{ __getParentUserName(info) }}
+ {{ __getRefferMemberUserName(info) }}
|
diff --git a/src/app/modules/admin/member/partner-recommendation/components/list.component.ts b/src/app/modules/admin/member/partner-recommendation/components/list.component.ts
index d8a948c..ffa8b7d 100644
--- a/src/app/modules/admin/member/partner-recommendation/components/list.component.ts
+++ b/src/app/modules/admin/member/partner-recommendation/components/list.component.ts
@@ -19,7 +19,7 @@ import { FuseConfirmationService } from '@fuse/services/confirmation';
import { ActivatedRoute, Router } from '@angular/router';
import { MatTableDataSource } from '@angular/material/table';
-import { MemberModel } from 'app/modules/proto/models/member_pb';
+import { Member, MemberModel } from 'app/modules/proto/models/member_pb';
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
import { SelectionModel } from '@angular/cdk/collections';
@@ -377,10 +377,13 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
});
}
+ __getRefferMemberUserName(info: MemberReferrerModel): string {
+ const find = this.listMembers.find(
+ (m) => m.getId() === info.getMember()?.getParentMemberId()
+ );
+ return !!find ? find.getUsername() : '없음';
+ }
__getParentUserName(info: MemberModel): string {
- /* console.log(member.getReferrerMember()?.getUsername());
-
- const name = member.getReferrerMember()?.getUsername(); */
const find = this.listMembers.find(
(m) => m.getId() === info.getParentMember()?.getId()
);