return null when totalBytesToSendMax cannot be evaluated (instead of 0)

This commit is contained in:
Ivan Socolsky 2015-12-04 15:14:54 -03:00
parent cb677303b6
commit a838978b3f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
});