From 5819c250153422f9e40722f8fb23afb4a490cded Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 19 Oct 2022 09:06:34 -0400 Subject: [PATCH] Revert "remove previous orders from price calculation in compute" This reverts commit 504840a2d3b89695031ad2bbf9aa1542a514a5f9. --- .../Asset/AssetActions/Compute/FormComputeDataset.tsx | 2 ++ .../Asset/AssetActions/Compute/PriceOutput.tsx | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx b/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx index 0b4ee1ef1..0a5a2a0fb 100644 --- a/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx +++ b/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx @@ -196,7 +196,9 @@ export default function FormStartCompute({ hasPreviousOrderSelectedComputeAsset={ hasPreviousOrderSelectedComputeAsset } + hasDatatoken={hasDatatoken} selectedComputeAssetTimeout={selectedComputeAssetTimeout} + hasDatatokenSelectedComputeAsset={hasDatatokenSelectedComputeAsset} algorithmConsumeDetails={selectedAlgorithmAsset?.accessDetails} symbol={oceanSymbol} totalPrice={totalPrice} diff --git a/src/components/Asset/AssetActions/Compute/PriceOutput.tsx b/src/components/Asset/AssetActions/Compute/PriceOutput.tsx index 4691866b4..f8d1de628 100644 --- a/src/components/Asset/AssetActions/Compute/PriceOutput.tsx +++ b/src/components/Asset/AssetActions/Compute/PriceOutput.tsx @@ -9,9 +9,11 @@ import Decimal from 'decimal.js' interface PriceOutputProps { totalPrice: string hasPreviousOrder: boolean + hasDatatoken: boolean symbol: string assetTimeout: string hasPreviousOrderSelectedComputeAsset: boolean + hasDatatokenSelectedComputeAsset: boolean algorithmConsumeDetails: AccessDetails selectedComputeAssetTimeout: string datasetOrderPrice?: string @@ -23,6 +25,7 @@ interface PriceOutputProps { function Row({ price, hasPreviousOrder, + hasDatatoken, symbol, timeout, sign, @@ -30,6 +33,7 @@ function Row({ }: { price: string hasPreviousOrder?: boolean + hasDatatoken?: boolean symbol?: string timeout?: string sign?: string @@ -41,7 +45,7 @@ function Row({
{type}