mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #6117 from ajp8164/feat/wavecrest-card-compatibility
Wavecrest card compatibility
This commit is contained in:
commit
d90b6486ab
|
@ -77,6 +77,12 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
|
|||
txs[i].price = _price(txs[i]);
|
||||
txs[i].runningBalance = runningBalance;
|
||||
_runningBalance(txs[i]);
|
||||
|
||||
if (txs[i].merchant.city && txs[i].merchant.state) {
|
||||
txs[i].merchant.location = txs[i].merchant.city + ', ' + txs[i].merchant.state;
|
||||
} else {
|
||||
txs[i].merchant.location = txs[i].merchant.city || txs[i].merchant.state || '';
|
||||
}
|
||||
}
|
||||
self.bitpayCardTransactionHistory = txs;
|
||||
self.balance = history.currentCardBalance;
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
{{tx.merchant.name || 'Unknown Merchant'}}
|
||||
</div>
|
||||
<div class="size-12 text-gray">
|
||||
<span ng-show="tx.merchant.city && tx.merchant.state">{{tx.merchant.city}}, {{tx.merchant.state}}</span>
|
||||
<span ng-show="tx.merchant.city && tx.merchant.state">{{tx.merchant.location}}</span>
|
||||
<span ng-class="{'m5l':tx.merchant.city && tx.merchant.state}">
|
||||
{{tx.timestamp | amDateFormat:'h:mm A'}}
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue