aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBowen <bowen@bodhi.network>2019-01-04 05:47:37 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-01-04 05:47:37 +0800
commit866b9af69ebbcfde2073edae9476283fce41fa42 (patch)
treecaaa97ed76eba8682e741df4ec462211870e7a46
parentcdb202a65e81de662935175f9c23a802a775d7e0 (diff)
downloadtangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.tar
tangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.tar.gz
tangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.tar.bz2
tangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.tar.lz
tangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.tar.xz
tangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.tar.zst
tangerine-wallet-browser-866b9af69ebbcfde2073edae9476283fce41fa42.zip
Fix Component#componentDidUpdate usage (#5977)
-rw-r--r--ui/app/components/token-list.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/token-list.js b/ui/app/components/token-list.js
index 6a88f30bf..258abde72 100644
--- a/ui/app/components/token-list.js
+++ b/ui/app/components/token-list.js
@@ -134,17 +134,17 @@ TokenList.prototype.createFreshTokenTracker = function () {
})
}
-TokenList.prototype.componentDidUpdate = function (nextProps) {
+TokenList.prototype.componentDidUpdate = function (prevProps) {
const {
network: oldNet,
userAddress: oldAddress,
tokens,
- } = this.props
+ } = prevProps
const {
network: newNet,
userAddress: newAddress,
tokens: newTokens,
- } = nextProps
+ } = this.props
const isLoading = newNet === 'loading'
const missingInfo = !oldNet || !newNet || !oldAddress || !newAddress