From bbd391ddfecbc7f6beec1d525297217756eb0b8b Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 19 Oct 2022 09:47:04 -0400 Subject: [PATCH] fix valid order tx and algo tx --- src/components/Asset/AssetActions/Compute/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Asset/AssetActions/Compute/index.tsx b/src/components/Asset/AssetActions/Compute/index.tsx index 7aa4b4838..ef305e03b 100644 --- a/src/components/Asset/AssetActions/Compute/index.tsx +++ b/src/components/Asset/AssetActions/Compute/index.tsx @@ -451,14 +451,12 @@ export default function Compute({ setSelectedAlgorithm={setSelectedAlgorithmAsset} isLoading={isOrdering || isRequestingAlgoOrderPrice} isComputeButtonDisabled={isComputeButtonDisabled} - hasPreviousOrder={validOrderTx !== undefined} + hasPreviousOrder={!!validOrderTx} hasDatatoken={hasDatatoken} dtBalance={dtBalance} assetType={asset?.metadata.type} assetTimeout={secondsToString(asset?.services[0].timeout)} - hasPreviousOrderSelectedComputeAsset={ - validAlgorithmOrderTx !== undefined - } + hasPreviousOrderSelectedComputeAsset={!!validAlgorithmOrderTx} hasDatatokenSelectedComputeAsset={hasAlgoAssetDatatoken} oceanSymbol={ asset?.accessDetails?.baseToken?.symbol ||