From 99fa2e965bccc466824f8280a45efd9451cbe730 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Mon, 18 May 2020 05:09:04 -0700 Subject: [PATCH] fix lint --- client/src/components/molecules/JobTeaser.tsx | 6 +++++- client/src/utils/getUserJobs.ts | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client/src/components/molecules/JobTeaser.tsx b/client/src/components/molecules/JobTeaser.tsx index a4e9ff9..6ebac6e 100644 --- a/client/src/components/molecules/JobTeaser.tsx +++ b/client/src/components/molecules/JobTeaser.tsx @@ -1,6 +1,7 @@ import React, { useEffect, useState, useContext } from 'react' import { User } from '../../context' import moment from 'moment' +import shortid from 'shortid' import styles from './JobTeaser.module.scss' import Dotdotdot from 'react-dotdotdot' @@ -59,7 +60,10 @@ export default function JobTeaser({ job }: { job: any }) { <>
Output URL
{job.resultsUrl.map((result: string) => ( - {result.substring(0, 52)}... + + {' '} + {result.substring(0, 52)}... + ))} ) : ( diff --git a/client/src/utils/getUserJobs.ts b/client/src/utils/getUserJobs.ts index 779b300..e0cf22a 100644 --- a/client/src/utils/getUserJobs.ts +++ b/client/src/utils/getUserJobs.ts @@ -4,9 +4,10 @@ export async function getUserJobs(ocean: any, account: string) { try { let account: Account ;[account] = await ocean.accounts.list() + const account = await ocean.accounts.list() await account.authenticate() - const jobList = await ocean.compute.status(account) + const jobList = await ocean.compute.status(account[0]) return jobList } catch (error) { console.error(error)