Bugfix for undefined wallet status on send tab.

This commit is contained in:
Brendon Duncan 2018-06-15 10:04:15 +12:00
commit 1e73eae4d2

View file

@ -76,8 +76,11 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
var walletList = []; var walletList = [];
lodash.each(walletsToTransfer, function(v) { lodash.each(walletsToTransfer, function(v) {
var displayBalanceAsFiat = var displayBalanceAsFiat =
v.status.alternativeBalanceAvailable && // BD got v.status as undefined here once during development, just
config.wallet.settings.priceDisplay === 'fiat'; // after creating a new wallet.
v.status &&
v.status.alternativeBalanceAvailable &&
config.wallet.settings.priceDisplay === 'fiat';
walletList.push({ walletList.push({
color: v.color, color: v.color,