añadir el stringify al guardar la sesion

This commit is contained in:
Jaume Solís 2024-05-16 15:47:01 +02:00
parent 7a29591a33
commit 86e13f2184
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export function useLocalStorage() {
* @param {*} value - The value of the item to be added.
*/
const addItemSession = (key, value) => {
const stringifyValue = JSON.stringify(value);
SessionStorage.set(`@${key}`, stringifyValue);
}