fix(dokploy): remove console logs from linking account component

- Eliminated unnecessary console log statements in the LinkingAccount component to clean up the code and improve performance.
- Ensured that the account listing functionality remains intact while enhancing code readability.
This commit is contained in:
Mauricio Siu
2026-02-09 02:21:37 -06:00
parent 5d8b7b9b99
commit d348ad5556

View File

@@ -41,13 +41,11 @@ export function LinkingAccount() {
setAccountsLoading(true);
try {
const { data } = await authClient.listAccounts();
console.log(data);
const list = Array.isArray(data)
? data
: ((data && typeof data === "object" && "accounts" in data
? (data as { accounts?: AccountItem[] }).accounts
: null) ?? []);
console.log(list);
setAccounts(Array.isArray(list) ? list : []);
} catch {
setAccounts([]);