diff --git a/client/src/utils/getUserJobs.ts b/client/src/utils/getUserJobs.ts index 9e017ff..7798f75 100644 --- a/client/src/utils/getUserJobs.ts +++ b/client/src/utils/getUserJobs.ts @@ -2,10 +2,11 @@ import { Account } from '@oceanprotocol/squid' export async function getUserJobs(ocean: any, account: string) { try { - const account = await ocean.accounts.list() + const accounts = await ocean.accounts.list() + const account=accounts[0] await account.authenticate() - const jobList = await ocean.compute.status(account[0]) + const jobList = await ocean.compute.status(account) return jobList } catch (error) { console.error(error)