return null when totalBytesToSendMax cannot be evaluated (instead of 0)
This commit is contained in:
parent
cb677303b6
commit
a838978b3f
|
@ -981,7 +981,7 @@ WalletService.prototype.getBalance = function(opts, cb) {
|
|||
if (err) {
|
||||
log.error('Could not compute size of send max transaction', err);
|
||||
}
|
||||
balance.totalBytesToSendMax = size || 0;
|
||||
balance.totalBytesToSendMax = size || null;
|
||||
return cb(null, balance);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue