Default config unit for txFormatAmount

This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-31 12:11:33 -03:00
commit d3dda639db
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -7,7 +7,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
root.formatAmount = function(satoshis, fullPrecision) {
var config = configService.getSync().wallet.settings;
var config = configService.getDefaults().wallet.settings;
if (config.unitCode == 'sat') return satoshis;
//TODO : now only works for english, specify opts to change thousand separator and decimal separator