Skip to content

Commit 7cc27ef

Browse files
committed
fix typeof
1 parent 7337df9 commit 7cc27ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { create } from "zustand";
44
import { StateStorage, createJSONStorage, persist } from "zustand/middleware";
55

66
// check if we are in the browser and set storage type accordingly
7-
const isBrowser = typeof window.document !== "undefined" ? true : false
7+
const isBrowser = typeof window.document !== 'undefined';
88
const storageType = isBrowser ? localStorage : AsyncStorage;
99

1010
interface CartItems {

0 commit comments

Comments
 (0)