We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f588d commit 202f929Copy full SHA for 202f929
src/pages/packet/components/useIsMobile.js
@@ -7,7 +7,7 @@ const checkIsMobile = (windowWidth) => {
7
const useIsMobile = () => {
8
const isWindowClient = typeof window === 'object';
9
10
- const [isMobile, setIsMobile] = useState(isWindowClient ? checkIsMobile(window.innerWidth) : undefined);
+ const [isMobile, setIsMobile] = useState(isWindowClient ? checkIsMobile(window.innerWidth) : false);
11
12
useEffect(() => {
13
const setSize = () => {
0 commit comments