mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix your compute jobs section when asset network not selected
This commit is contained in:
parent
ad9ecd034c
commit
759c9332a0
@ -527,7 +527,7 @@ export default function Compute({
|
||||
</footer>
|
||||
{accountId && asset?.accessDetails?.datatoken && (
|
||||
<AssetActionHistoryTable title="Your Compute Jobs">
|
||||
<ComputeJobs minimal />
|
||||
<ComputeJobs minimal assetChainId={[asset?.chainId]} />
|
||||
</AssetActionHistoryTable>
|
||||
)}
|
||||
</>
|
||||
|
@ -70,9 +70,11 @@ const columns = [
|
||||
]
|
||||
|
||||
export default function ComputeJobs({
|
||||
minimal
|
||||
minimal,
|
||||
assetChainId
|
||||
}: {
|
||||
minimal?: boolean
|
||||
assetChainId?: number[]
|
||||
}): ReactElement {
|
||||
const { accountId, networkId } = useWeb3()
|
||||
const { asset } = useAsset()
|
||||
@ -93,7 +95,7 @@ export default function ComputeJobs({
|
||||
try {
|
||||
setIsLoading(true)
|
||||
const jobs = await getComputeJobs(
|
||||
chainIds,
|
||||
assetChainId || chainIds,
|
||||
accountId,
|
||||
asset,
|
||||
newCancelToken()
|
||||
|
Loading…
Reference in New Issue
Block a user