fix: should not clear guest history when guest pin note

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-06-12 19:58:19 +08:00
parent 8c20d9f625
commit b6d5db3b55
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ export function getStorageHistory (callback) {
let data = store.get('notehistory') let data = store.get('notehistory')
if (data) { if (data) {
if (typeof data === 'string') { data = JSON.parse(data) } if (typeof data === 'string') { data = JSON.parse(data) }
callback(data) return callback(data)
} }
// eslint-disable-next-line standard/no-callback-literal // eslint-disable-next-line standard/no-callback-literal
callback([]) callback([])