From 759c9332a040dd3792fa63c0704fc95aa683cd04 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Fri, 29 Apr 2022 10:18:26 +0300 Subject: [PATCH] fix your compute jobs section when asset network not selected --- src/components/Asset/AssetActions/Compute/index.tsx | 2 +- src/components/Profile/History/ComputeJobs/index.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Asset/AssetActions/Compute/index.tsx b/src/components/Asset/AssetActions/Compute/index.tsx index 1e5df7808..02eef32f3 100644 --- a/src/components/Asset/AssetActions/Compute/index.tsx +++ b/src/components/Asset/AssetActions/Compute/index.tsx @@ -527,7 +527,7 @@ export default function Compute({ {accountId && asset?.accessDetails?.datatoken && ( - + )} diff --git a/src/components/Profile/History/ComputeJobs/index.tsx b/src/components/Profile/History/ComputeJobs/index.tsx index 3383a7be4..fe7bcb5e3 100644 --- a/src/components/Profile/History/ComputeJobs/index.tsx +++ b/src/components/Profile/History/ComputeJobs/index.tsx @@ -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()