diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-06-06 03:04:03 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-06-06 03:04:03 +0800 |
commit | 762695bfd943a8910e4f297a66d9b8cd44eb8579 (patch) | |
tree | c55aa55831f6f13e25de1f0725a3e122079d04ab | |
parent | 3b6e96bac918925c4edc674e26dba8cc5feb1324 (diff) | |
download | tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.tar tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.tar.gz tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.tar.bz2 tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.tar.lz tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.tar.xz tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.tar.zst tangerine-wallet-browser-762695bfd943a8910e4f297a66d9b8cd44eb8579.zip |
Ensure selectedAddress exists when render wallet
-rw-r--r-- | ui/app/components/wallet-view.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 3b29dacac..538175cdf 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -111,6 +111,10 @@ WalletView.prototype.render = function () { const checksummedAddress = checksumAddress(selectedAddress) + if (!selectedAddress) { + throw new Error('selectedAddress should not be ' + String(selectedAddress)) + } + const keyring = keyrings.find((kr) => { return kr.accounts.includes(selectedAddress) || kr.accounts.includes(selectedIdentity.address) |