fix decrypt and encript

This commit is contained in:
Peter Maquiran
2023-07-10 14:12:56 +01:00
parent c6c0f84b4e
commit 8a374730d3
4 changed files with 12 additions and 11 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ export function SAVE({key, localStorage, instance, dataToSave}) {
localStorage.setItem(newKey, cipherText)
} else {
localStorage.setItem(prefix() + key, dataToSave)
const stringifyData = JSON.stringify(dataToSave)
localStorage.setItem(prefix() + key, stringifyData)
}
}