mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
fix lint
This commit is contained in:
parent
38691369d4
commit
99fa2e965b
@ -1,6 +1,7 @@
|
|||||||
import React, { useEffect, useState, useContext } from 'react'
|
import React, { useEffect, useState, useContext } from 'react'
|
||||||
import { User } from '../../context'
|
import { User } from '../../context'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
import shortid from 'shortid'
|
||||||
import styles from './JobTeaser.module.scss'
|
import styles from './JobTeaser.module.scss'
|
||||||
import Dotdotdot from 'react-dotdotdot'
|
import Dotdotdot from 'react-dotdotdot'
|
||||||
|
|
||||||
@ -59,7 +60,10 @@ export default function JobTeaser({ job }: { job: any }) {
|
|||||||
<>
|
<>
|
||||||
<div>Output URL</div>
|
<div>Output URL</div>
|
||||||
{job.resultsUrl.map((result: string) => (
|
{job.resultsUrl.map((result: string) => (
|
||||||
<a href={result}> {result.substring(0, 52)}...</a>
|
<a href={result} key={shortid.generate()}>
|
||||||
|
{' '}
|
||||||
|
{result.substring(0, 52)}...
|
||||||
|
</a>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
@ -4,9 +4,10 @@ export async function getUserJobs(ocean: any, account: string) {
|
|||||||
try {
|
try {
|
||||||
let account: Account
|
let account: Account
|
||||||
;[account] = await ocean.accounts.list()
|
;[account] = await ocean.accounts.list()
|
||||||
|
const account = await ocean.accounts.list()
|
||||||
|
|
||||||
await account.authenticate()
|
await account.authenticate()
|
||||||
const jobList = await ocean.compute.status(account)
|
const jobList = await ocean.compute.status(account[0])
|
||||||
return jobList
|
return jobList
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user