Skip to content

Commit

Permalink
refact: add memberId condition in isRequesterJoinedFamily logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-soo708 committed Jun 21, 2024
1 parent acbd1fc commit 5bf1154
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ public class FamilyInviteViewController implements FamilyInviteViewApi {
private final FamilyBridge familyBridge;
private final PostBridge postBridge;
private final MemberController memberController;
private final MeApi meApi;

@Override
public FamilyInviteDeepLinkResponse getFamilyInviteLinkDetails(String linkId, String loginMemberId) {
boolean isRequesterJoinedFamily = true;
MemberResponse me = memberController.getMemberNullable(loginMemberId);
if (me.familyId() == null) {
if (me.familyId() == null || me.memberId() == null) {
isRequesterJoinedFamily = false;
}

Expand Down

0 comments on commit 5bf1154

Please sign in to comment.