diff --git a/lib/plugins.js b/lib/plugins.js index 52c627ed..ca32265e 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -292,7 +292,7 @@ function executeTx (session, tx, authority, cb) { return cb(err) } var cryptoAtomsToSend = toSend.cryptoAtoms - if (cryptoAtomsToSend === 0) { + if (cryptoAtomsToSend.eq(0)) { logger.debug('No cryptoAtoms to send') return cb(null, {statusCode: 204, txId: tx.txId, txHash: null}) }