chore(local-storage): reset value on clear [ci skip]

This commit is contained in:
Eric Y Liu 2021-07-09 12:24:06 -07:00
commit f6833c11f2

View file

@ -20,6 +20,7 @@
* @type {() => void} * @type {() => void}
*/ */
export function clearItem() { export function clearItem() {
value = "";
localStorage.removeItem(key); localStorage.removeItem(key);
} }
@ -28,6 +29,7 @@
* @type {() => void} * @type {() => void}
*/ */
export function clearAll() { export function clearAll() {
value = "";
localStorage.clear(); localStorage.clear();
} }