From 02978d02475a214c85c0ca636c0702eec2b87733 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 4 Jan 2024 15:20:23 +0900 Subject: [PATCH] lint --- packages/frontend/src/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/account.ts b/packages/frontend/src/account.ts index f23fb804c..1e5f38cf1 100644 --- a/packages/frontend/src/account.ts +++ b/packages/frontend/src/account.ts @@ -23,7 +23,7 @@ const accountData = miLocalStorage.getItem('account'); // TODO: 外部からはreadonlyに export const $i = accountData ? reactive(JSON.parse(accountData) as Account) : null; -export const iAmModerator = $i != null && ($i.isAdmin || $i.isModerator); +export const iAmModerator = $i != null && ($i.isAdmin === true || $i.isModerator === true); export const iAmAdmin = $i != null && $i.isAdmin; export let notesCount = $i == null ? 0 : $i.notesCount;