1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix misnamed variable.

This commit is contained in:
Kevin Serrano 2016-10-12 13:04:21 -07:00
parent d67a5031c7
commit 3954ed2a7e
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4

View File

@ -280,9 +280,11 @@ module.exports = class MetamaskController {
checkTOSChange () {
try {
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.setTOSHash(global.newTOSHash)
this.setTOSHash(global.TOS_HASH)
}
} catch (e) {
console.error('Error in checking TOS change.')