From e83a99ae969d90460d75ad58b10686739e270e4d Mon Sep 17 00:00:00 2001 From: Sky Young Date: Fri, 18 May 2018 16:31:07 -0700 Subject: [PATCH] Update Currency --- public/src/js/controllers/currency.js | 4 ++-- public/src/js/controllers/header.js | 2 +- public/views/includes/currency.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/src/js/controllers/currency.js b/public/src/js/controllers/currency.js index aee5816..27d24a2 100644 --- a/public/src/js/controllers/currency.js +++ b/public/src/js/controllers/currency.js @@ -20,7 +20,7 @@ angular.module('flosight.currency').controller('CurrencyController', if (this.symbol === 'USD') { response = _roundFloat((value * this.factor), 2); - } else if (this.symbol === 'mBTC') { + } else if (this.symbol === 'mFLO') { this.factor = 1000; response = _roundFloat((value * this.factor), 5); } else if (this.symbol === 'bits') { @@ -47,7 +47,7 @@ angular.module('flosight.currency').controller('CurrencyController', Currency.get({}, function(res) { $rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp; }); - } else if (currency === 'mBTC') { + } else if (currency === 'mFLO') { $rootScope.currency.factor = 1000; } else if (currency === 'bits') { $rootScope.currency.factor = 1000000; diff --git a/public/src/js/controllers/header.js b/public/src/js/controllers/header.js index c62c2d1..2579488 100644 --- a/public/src/js/controllers/header.js +++ b/public/src/js/controllers/header.js @@ -7,7 +7,7 @@ angular.module('flosight.system').controller('HeaderController', $rootScope.currency = { factor: 1, bitstamp: 0, - symbol: 'BTC' + symbol: 'FLO' }; $scope.menu = [{ diff --git a/public/views/includes/currency.html b/public/views/includes/currency.html index 483893b..9d85f3f 100644 --- a/public/views/includes/currency.html +++ b/public/views/includes/currency.html @@ -6,10 +6,10 @@ USD
  • - BTC + FLO
  • - mBTC + mFLO
  • bits