añadir el stringify al guardar la sesion
This commit is contained in:
parent
7a29591a33
commit
86e13f2184
|
@ -18,6 +18,7 @@ export function useLocalStorage() {
|
||||||
* @param {*} value - The value of the item to be added.
|
* @param {*} value - The value of the item to be added.
|
||||||
*/
|
*/
|
||||||
const addItemSession = (key, value) => {
|
const addItemSession = (key, value) => {
|
||||||
|
const stringifyValue = JSON.stringify(value);
|
||||||
SessionStorage.set(`@${key}`, stringifyValue);
|
SessionStorage.set(`@${key}`, stringifyValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue