diff --git a/client/src/components/molecules/JobTeaser.tsx b/client/src/components/molecules/JobTeaser.tsx index 2d4444b..a4e9ff9 100644 --- a/client/src/components/molecules/JobTeaser.tsx +++ b/client/src/components/molecules/JobTeaser.tsx @@ -19,7 +19,7 @@ export default function JobTeaser({ job }: { job: any }) { const asset = await (ocean as any).assets.resolve(did) const { attributes } = asset.findServiceByType('metadata') const { main } = attributes - const link = "/asset/did:op:" + did + const link = '/asset/did:op:' + did setAssetName(main.name) setAssetUrl(link as any) } catch (error) { @@ -33,7 +33,9 @@ export default function JobTeaser({ job }: { job: any }) { return (
-

{assetName}

+

+ {assetName} +

Your job started!

-
diff --git a/client/src/utils/getUserJobs.ts b/client/src/utils/getUserJobs.ts index 0a4194a..779b300 100644 --- a/client/src/utils/getUserJobs.ts +++ b/client/src/utils/getUserJobs.ts @@ -1,17 +1,14 @@ import { Account } from '@oceanprotocol/squid' - export async function getUserJobs(ocean: any, account: string) { try { let account: Account ;[account] = await ocean.accounts.list() - + await account.authenticate() const jobList = await ocean.compute.status(account) - return jobList; - + return jobList } catch (error) { console.error(error) } - -} \ No newline at end of file +}