diff --git a/src/lib/common.ts b/src/lib/common.ts index b0b2687..ce654b8 100644 --- a/src/lib/common.ts +++ b/src/lib/common.ts @@ -18,7 +18,7 @@ export default class Common { if (typeof data === 'string' || typeof data === 'number') { dataStr = data.toString() } - if (dataStr) { + if (dataStr != null) { localStorage.setItem('pgp-' + name, dataStr) } }