Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
riddhesh-mahajan committed Oct 30, 2023
1 parent ae11f26 commit 7cbe8ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/admin/hooks/useLocalStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const processStoredValue = (storedValue: any) => {
}
};

const parseStoredValue = (storedValue) => {
const parseStoredValue = (storedValue: any) => {
try {
return JSON.parse(storedValue);
} catch (err) {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/hooks/useLocalStorage.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"use client";

const processStoredValue = (storedValue) => {
const processStoredValue = (storedValue: any) => {
try {
return JSON.parse(storedValue);
} catch (err) {
return storedValue;
}
};

const parseStoredValue = (storedValue) => {
const parseStoredValue = (storedValue: any) => {
try {
return JSON.parse(storedValue);
} catch (err) {
Expand Down

0 comments on commit 7cbe8ac

Please sign in to comment.