Update account-settings.tsx

This commit is contained in:
Tom (plebeius.eth)
2025-01-23 16:43:45 +01:00
parent c21d512958
commit 74be19f1f3
@@ -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 {