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

Download ordered asset with forever timeout multiple times (#739)

* redownload ordered asset with forever timeout

* update check
This commit is contained in:
claudiaHash 2021-07-16 17:46:59 +03:00 committed by GitHub
parent de519f4969
commit 117c3af5f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,8 +74,7 @@ export default function Consume({
if (!data || !assetTimeout || data.tokenOrders.length === 0) return
const lastOrder = data.tokenOrders[0]
if (assetTimeout === 'Forever') {
if (assetTimeout === '0') {
setPreviousOrderId(lastOrder.tx)
setHasPreviousOrder(true)
} else {