Skip to content

Commit 175ca8c

Browse files
authored
fix duplicate useLocalStorage.ts
1 parent 2cd89e4 commit 175ca8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/remix-ui/plugin-manager/src/lib/custom-hooks/useLocalStorage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function useLocalStorage<T> (key: string, initialValue: T): [T, SetValue<T>] {
66
// Get from local storage then
77
// parse stored json or return initialValue
88
const readValue = (): T => {
9-
// Prevent build error "window is undefined" but keep keep working
9+
// Prevent build error "window is undefined" but keep working
1010
if (typeof window === 'undefined') {
1111
return initialValue
1212
}

0 commit comments

Comments
 (0)