Commit b9374c25 authored by Donald Cook's avatar Donald Cook

Checking for undefined instead of positive int

parent 3f344b46
...@@ -56,7 +56,7 @@ export default class Autosave { ...@@ -56,7 +56,7 @@ export default class Autosave {
if (this.fallbackKey) { if (this.fallbackKey) {
window.localStorage.setItem(this.fallbackKey, text); window.localStorage.setItem(this.fallbackKey, text);
} }
if (this.lockVersion > -1) { if (this.lockVersion !== undefined) {
window.localStorage.setItem(this.lockVersionKey, this.lockVersion); window.localStorage.setItem(this.lockVersionKey, this.lockVersion);
} }
return window.localStorage.setItem(this.key, text); return window.localStorage.setItem(this.key, text);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment