From cac2613e9ebf877f821c0677d787ea935cd5c6f6 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 8 Jan 2024 04:32:30 -0800 Subject: [PATCH] Add note to latest update (#400) --- components/about/UpdatesPage/index.tsx | 2 +- public/locales/en/updates.json | 3 ++- public/locales/ja/updates.json | 3 ++- utils/userToken.tsx | 14 ++++++-------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/about/UpdatesPage/index.tsx b/components/about/UpdatesPage/index.tsx index e79af634..02d7c8b4 100644 --- a/components/about/UpdatesPage/index.tsx +++ b/components/about/UpdatesPage/index.tsx @@ -88,7 +88,7 @@ const UpdatesPage = () => { uncappedItems={{ character: ['3040167000', '3040166000'], }} - numNotes={1} + numNotes={2} /> { - ls(id, key) + const stored = set(id, key) + if (stored) setEditKey(id) + return stored } -export const setEditKey = (id: string, user?: User) => { - if (!user) { - const edit_key = get(id) - axios.defaults.headers.common['X-Edit-Key'] = edit_key - } else { - unsetEditKey() - } +export const setEditKey = (id: string) => { + const edit_key = get(id) + axios.defaults.headers.common['X-Edit-Key'] = edit_key } export const unsetEditKey = () => {