From 38691369d407c3aa47f2387fd984ef29c1a3e813 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 5 May 2020 12:43:14 +0300 Subject: [PATCH] lint fix --- client/src/components/molecules/JobTeaser.tsx | 6 ++++-- client/src/components/templates/Asset/AssetJob.tsx | 2 +- client/src/utils/getUserJobs.ts | 9 +++------ 3 files changed, 8 insertions(+), 9 deletions(-) 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 +}