mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
added logs
This commit is contained in:
parent
7ee2bdab98
commit
bad0b12d50
@ -277,19 +277,21 @@ export async function getComputeJobs(
|
||||
user: accountId.toLowerCase()
|
||||
}
|
||||
|
||||
console.log(' getComputeJobs variables ', variables)
|
||||
const results = await fetchDataForMultipleChains(
|
||||
assetDTAddress ? getComputeOrdersByDatatokenAddress : getComputeOrders,
|
||||
variables,
|
||||
assetDTAddress ? [asset?.chainId] : chainIds
|
||||
)
|
||||
|
||||
console.log(' getComputeJobs results getComputeOrders', results)
|
||||
let tokenOrders: TokenOrder[] = []
|
||||
results.map((result) => {
|
||||
result.orders.forEach((tokenOrder: TokenOrder) =>
|
||||
tokenOrders.push(tokenOrder)
|
||||
)
|
||||
})
|
||||
|
||||
console.log(' getComputeJobs tokenOrders ', tokenOrders)
|
||||
if (tokenOrders.length === 0) {
|
||||
return computeResult
|
||||
}
|
||||
|
@ -94,13 +94,7 @@ function getComputeAssetHelpText(
|
||||
isConsumable === false ||
|
||||
isAlgorithmConsumable === false
|
||||
? ''
|
||||
: // : algorithmConsumableStatus === 1
|
||||
// ? 'The selected algorithm has been temporarily disabled by the publisher, please try again later.'
|
||||
// : algorithmConsumableStatus === 2
|
||||
// ? 'Access denied, your wallet address is not found on the selected algorithm allow list.'
|
||||
// : algorithmConsumableStatus === 3
|
||||
// ? 'Access denied, your wallet address is found on the selected algorithm deny list.'
|
||||
hasPreviousOrderSelectedComputeAsset
|
||||
: hasPreviousOrderSelectedComputeAsset
|
||||
? `You already bought the selected ${selectedComputeAssetType}, allowing you to use it without paying again.`
|
||||
: hasDatatokenSelectedComputeAsset
|
||||
? `You own ${dtBalanceSelectedComputeAsset} ${dtSymbolSelectedComputeAsset} allowing you to use the selected ${selectedComputeAssetType} by spending 1 ${dtSymbolSelectedComputeAsset}, but without paying OCEAN again.`
|
||||
|
Loading…
Reference in New Issue
Block a user