Fix misnamed variable.

feature/default_network_editable
Kevin Serrano 8 years ago
parent d67a5031c7
commit 3954ed2a7e
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 6
      app/scripts/metamask-controller.js

@ -280,9 +280,11 @@ module.exports = class MetamaskController {
checkTOSChange () { checkTOSChange () {
try { try {
const storedHash = this.configManager.getTOSHash() || 0 const storedHash = this.configManager.getTOSHash() || 0
if (storedHash !== global.newTOSHash) { console.log('storedHash is: ', storedHash)
console.log('global.TOS_HASH is: ', global.TOS_HASH)
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.')

Loading…
Cancel
Save