Skip to content

Commit

Permalink
Merge branch 'feature/restrict-to-master' of https://github.com/mash-…
Browse files Browse the repository at this point in the history
…up-kr/mash-up-admin-fe into feature/master-account-task
  • Loading branch information
kikiyeom committed Jan 28, 2024
2 parents 0d7fedd + ad124ed commit c4e3302
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 c4e3302

Please sign in to comment.