From ad124edbce7c370e88d764b07a6a38f4bb9bdacd Mon Sep 17 00:00:00 2001 From: kikiyeom Date: Sun, 28 Jan 2024 09:36:05 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=8B=9C?= =?UTF-8?q?=20=ED=83=80=EC=9E=85=EC=97=90=EB=9F=AC=EB=A5=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=98=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/login.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ?? ''); }, });