From 504840a2d3b89695031ad2bbf9aa1542a514a5f9 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 19 Oct 2022 08:48:36 -0400 Subject: [PATCH] remove previous orders from price calculation in compute --- .../Asset/AssetActions/Compute/FormComputeDataset.tsx | 2 -- .../Asset/AssetActions/Compute/PriceOutput.tsx | 10 +--------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx b/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx index 0a5a2a0fb..0b4ee1ef1 100644 --- a/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx +++ b/src/components/Asset/AssetActions/Compute/FormComputeDataset.tsx @@ -196,9 +196,7 @@ 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 f8d1de628..4691866b4 100644 --- a/src/components/Asset/AssetActions/Compute/PriceOutput.tsx +++ b/src/components/Asset/AssetActions/Compute/PriceOutput.tsx @@ -9,11 +9,9 @@ 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 @@ -25,7 +23,6 @@ interface PriceOutputProps { function Row({ price, hasPreviousOrder, - hasDatatoken, symbol, timeout, sign, @@ -33,7 +30,6 @@ function Row({ }: { price: string hasPreviousOrder?: boolean - hasDatatoken?: boolean symbol?: string timeout?: string sign?: string @@ -45,7 +41,7 @@ function Row({
{type}