diff --git a/src/store/login.ts b/src/store/login.ts index e953b571..3f9b1056 100644 --- a/src/store/login.ts +++ b/src/store/login.ts @@ -43,9 +43,7 @@ const MASTER_SCORE_TYPES = [ScoreType.MASHUP_LEADER, ScoreType.MASHUP_SUBLEADER] export const $isMaster = selectorWithRefresher({ 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 ?? ''); }, });