Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge e8e6825 into a917527
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Mar 13, 2018
2 parents a917527 + e8e6825 commit 6029be7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/controllers/home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function HomeCtrl ($rootScope, $scope, MyWallet, Wallet, Ethereum, BitcoinCash,
// ensure all recent transactions are reflected in activity widget
$rootScope.$emit('updateActivityFeed');

$scope.exchange = MyWallet.wallet.external.sfox;
$scope.exchange = MyWallet.wallet && MyWallet.wallet.external && MyWallet.wallet.external.sfox;

// SFOX signup
$scope.steps = enumify('create', 'verify', 'upload', 'link');
Expand Down
1 change: 0 additions & 1 deletion assets/js/services/sfox.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ function sfox ($q, MyWallet, MyWalletHelpers, Alerts, modals, Env, Exchange, cur
: trade.receiveAmount * 1e8;

let tradingFee = quote ? parseFloat(quote.feeAmount) : parseFloat(trade.feeAmount);

let fiatAmount = quote
? quote.baseCurrency === 'USD' ? quote.baseAmount - tradingFee : quote.quoteAmount - tradingFee
: trade.inAmount / 1e8 - trade.feeAmount;
Expand Down

0 comments on commit 6029be7

Please sign in to comment.