diff --git a/src/DecryptionFailureTracker.js b/src/DecryptionFailureTracker.js index 2a7f2a4e26..337f4b08c3 100644 --- a/src/DecryptionFailureTracker.js +++ b/src/DecryptionFailureTracker.js @@ -56,7 +56,7 @@ export default class DecryptionFailureTracker { } loadTrackedEventHashMap() { - this.trackedEventHashMap = JSON.parse(localStorage.getItem('mx-decryption-failure-event-id-hashes')); + this.trackedEventHashMap = JSON.parse(localStorage.getItem('mx-decryption-failure-event-id-hashes')) || {}; } saveTrackedEventHashMap() {