Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vurnick committed Mar 4, 2024
1 parent 4fdc7fe commit 6ec7fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useLocalstorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const useLocalstorage = () => {
if (keys) {
keys.forEach(key => localStorage.removeItem(key));
} else {
localStorage.clear();
Object.keys(LS).forEach(key => localStorage.removeItem(key));
}
};

Expand Down

0 comments on commit 6ec7fc3

Please sign in to comment.