Skip to content

Commit

Permalink
Fix: 로그인 시 타입에러를 수정하다
Browse files Browse the repository at this point in the history
  • Loading branch information
kikiyeom committed Jan 28, 2024
1 parent 30d0e8f commit ad124ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/store/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const MASTER_SCORE_TYPES = [ScoreType.MASHUP_LEADER, ScoreType.MASHUP_SUBLEADER]
export const $isMaster = selectorWithRefresher<boolean>({
key: 'isMaster',
get: ({ get }) => {
const {
adminMember: { position },
} = get($me);
return MASTER_SCORE_TYPES.includes(position ?? '');
const { adminMember } = get($me);
return MASTER_SCORE_TYPES.includes(adminMember?.position ?? '');
},
});

0 comments on commit ad124ed

Please sign in to comment.