Merge pull request #733 from MetaMask/tos-fix

Fix misnamed variable.
This commit is contained in:
Kevin Serrano 2016-10-12 13:08:37 -07:00 committed by GitHub
commit f68673e84a
1 changed files with 2 additions and 2 deletions

View File

@ -280,9 +280,9 @@ module.exports = class MetamaskController {
checkTOSChange () { checkTOSChange () {
try { try {
const storedHash = this.configManager.getTOSHash() || 0 const storedHash = this.configManager.getTOSHash() || 0
if (storedHash !== global.newTOSHash) { if (storedHash !== global.TOS_HASH) {
this.resetDisclaimer() this.resetDisclaimer()
this.setTOSHash(global.newTOSHash) this.setTOSHash(global.TOS_HASH)
} }
} catch (e) { } catch (e) {
console.error('Error in checking TOS change.') console.error('Error in checking TOS change.')