From 866b9af69ebbcfde2073edae9476283fce41fa42 Mon Sep 17 00:00:00 2001 From: Bowen Date: Thu, 3 Jan 2019 13:47:37 -0800 Subject: [PATCH] Fix Component#componentDidUpdate usage (#5977) --- ui/app/components/token-list.js | 6 +++--- 1 file 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