From a1b5a1094f8c366f4ec53615b1c590433df6ad36 Mon Sep 17 00:00:00 2001 From: Damian Mee Date: Fri, 22 Aug 2014 23:56:14 +0200 Subject: [PATCH] fix(balance): proper balance reference used --- lib/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins.js b/lib/plugins.js index 81f7ebbd..426095a3 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -184,7 +184,7 @@ exports.fiatBalance = function fiatBalance(deviceFingerprint) { // `balance.transferBalance` is the balance of our transfer account (the one // we use to send Bitcoins to clients) in satoshis. - var transferBalance = balance.transferBalance; + var transferBalance = lastBalances.transferBalance.BTC; // Since `transferBalance` is in satoshis, we need to turn it into // bitcoins and then fiat to learn how much fiat currency we can exchange.