From ced30a9602392e06a57500050a16c9e69443a292 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 22 Oct 2023 23:09:04 +0800 Subject: [PATCH] Fix default tag always wrong location Feel so dumb looking back at this code lol --- src/pages/accounts.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/accounts.jsx b/src/pages/accounts.jsx index d43a33fb..7647e815 100644 --- a/src/pages/accounts.jsx +++ b/src/pages/accounts.jsx @@ -2,6 +2,7 @@ import './accounts.css'; import { Menu, MenuDivider, MenuItem } from '@szhsin/react-menu'; import { useReducer, useState } from 'preact/hooks'; +import { useReducer } from 'preact/hooks'; import Avatar from '../components/avatar'; import Icon from '../components/icon'; @@ -18,7 +19,6 @@ function Accounts({ onClose }) { const accounts = store.local.getJSON('accounts'); const currentAccount = store.session.get('currentAccount'); const moreThanOneAccount = accounts.length > 1; - const [currentDefault, setCurrentDefault] = useState(0); const [_, reload] = useReducer((x) => x + 1, 0); @@ -37,9 +37,9 @@ function Accounts({ onClose }) {