diff --git a/services/gunDB/contact-api/jobs/onOrders.js b/services/gunDB/contact-api/jobs/onOrders.js index e187d71d..0dc81390 100644 --- a/services/gunDB/contact-api/jobs/onOrders.js +++ b/services/gunDB/contact-api/jobs/onOrders.js @@ -59,11 +59,11 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => { .then(), v => { // only retry once, because of the timeout - if (typeof v === 'undefined' && hasRetried) { + if (hasRetried) { return false } hasRetried = true - return true + return typeof v === 'undefined' } )