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 = () => {