1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix compute jobs table auto refresh and details modal closing

This commit is contained in:
Bogdan Fazakas 2022-05-05 17:06:11 +03:00
parent dff4a0ca1c
commit 692fb509f6
2 changed files with 2 additions and 7 deletions

View File

@ -94,10 +94,6 @@ export default function FormStartCompute({
} }
useEffect(() => { useEffect(() => {
console.log('values.algorithm', values.algorithm)
console.log('accountId', accountId)
console.log('isConsumable', isConsumable)
if (!values.algorithm || !accountId || !isConsumable) return if (!values.algorithm || !accountId || !isConsumable) return
async function fetchAlgorithmAssetExtended() { async function fetchAlgorithmAssetExtended() {
const algorithmAsset = getAlgorithmAsset(values.algorithm) const algorithmAsset = getAlgorithmAsset(values.algorithm)

View File

@ -76,15 +76,14 @@ export default function ComputeJobs({
minimal?: boolean minimal?: boolean
assetChainId?: number[] assetChainId?: number[]
}): ReactElement { }): ReactElement {
const { accountId, networkId } = useWeb3() const { accountId } = useWeb3()
const { asset } = useAsset() const { asset } = useAsset()
const { chainIds } = useUserPreferences() const { chainIds } = useUserPreferences()
const [isLoading, setIsLoading] = useState(false) const [isLoading, setIsLoading] = useState(false)
const [jobs, setJobs] = useState<ComputeJobMetaData[]>([]) const [jobs, setJobs] = useState<ComputeJobMetaData[]>([])
const isMounted = useIsMounted() const isMounted = useIsMounted()
const newCancelToken = useCancelToken() const newCancelToken = useCancelToken()
const [columnsMinimal] = useState([columns[4], columns[5], columns[3]])
const columnsMinimal = [columns[4], columns[5], columns[3]]
const fetchJobs = useCallback(async () => { const fetchJobs = useCallback(async () => {
if (!chainIds || chainIds.length === 0 || !accountId) { if (!chainIds || chainIds.length === 0 || !accountId) {