From 2a8c79cc142ba7e0de065b2cd57b7920309a6aa4 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sat, 13 Feb 2016 09:38:08 -0500 Subject: [PATCH] AccountRegister: Don't try to access null account --- static/AccountRegister.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/AccountRegister.js b/static/AccountRegister.js index f6156a6..ae5c5dc 100644 --- a/static/AccountRegister.js +++ b/static/AccountRegister.js @@ -792,7 +792,8 @@ module.exports = React.createClass({ transactions: [], currentPage: 0 }); - this.getTransactionPage(nextProps.selectedAccount, 0); + if (nextProps.selectedAccount != null) + this.getTransactionPage(nextProps.selectedAccount, 0); } }, render: function() {