mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 09:44:53 +01:00
fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
c49e0b1288
commit
4601bb8706
@ -85,7 +85,7 @@ const columns = [
|
|||||||
|
|
||||||
export default function ComputeJobs(): ReactElement {
|
export default function ComputeJobs(): ReactElement {
|
||||||
const { ocean, account } = useOcean()
|
const { ocean, account } = useOcean()
|
||||||
const [jobs] = useState<ComputeJob[]>()
|
const [jobs,setJobs] = useState<ComputeJob[]>()
|
||||||
const [isLoading, setIsLoading] = useState(false)
|
const [isLoading, setIsLoading] = useState(false)
|
||||||
const [userAgreed, setUserAgreed] = useState(false)
|
const [userAgreed, setUserAgreed] = useState(false)
|
||||||
|
|
||||||
@ -99,13 +99,13 @@ export default function ComputeJobs(): ReactElement {
|
|||||||
100
|
100
|
||||||
)
|
)
|
||||||
console.log('orders', orderHistory)
|
console.log('orders', orderHistory)
|
||||||
// const userJobs = await ocean.compute.status(account)
|
const userJobs = await ocean.compute.status(account)
|
||||||
|
|
||||||
// setJobs(userJobs.sort((a, b) => {
|
setJobs(userJobs.sort((a, b) => {
|
||||||
// if (a.dateCreated > b.dateCreated) return -1
|
if (a.dateCreated > b.dateCreated) return -1
|
||||||
// if (a.dateCreated < b.dateCreated) return 1
|
if (a.dateCreated < b.dateCreated) return 1
|
||||||
// return 0
|
return 0
|
||||||
// }))
|
}))
|
||||||
setUserAgreed(true)
|
setUserAgreed(true)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user