From 74be19f1f36982e7a3ca1fee949c505e80834983 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Thu, 23 Jan 2025 16:43:45 +0100 Subject: [PATCH] Update account-settings.tsx --- .../settings-modal/account-settings/account-settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/settings-modal/account-settings/account-settings.tsx b/src/components/settings-modal/account-settings/account-settings.tsx index 94e59ff2..7ffb4e4d 100644 --- a/src/components/settings-modal/account-settings/account-settings.tsx +++ b/src/components/settings-modal/account-settings/account-settings.tsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import { useEffect, useMemo, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { createAccount, deleteAccount, exportAccount, importAccount, setAccount, setActiveAccount, useAccount, useAccounts } from '@plebbit/plebbit-react-hooks'; import stringify from 'json-stringify-pretty-compact'; @@ -49,7 +49,7 @@ const AccountSettings = () => { setActiveAccount(lastAccount.name); switchToNewAccountRef.current = false; } - }, [accounts, setActiveAccount]); + }, [accounts]); const handleCreateAccount = async () => { try {