From ff9e6c43f451ed933b0cb8d35623bf3b6a1de1c4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 15 Mar 2023 16:34:34 +0700
Subject: -

---
 src/core/components/views/DesktopView.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/core/components/views/DesktopView.jsx')

diff --git a/src/core/components/views/DesktopView.jsx b/src/core/components/views/DesktopView.jsx
index 9042a766..cf5f65a4 100644
--- a/src/core/components/views/DesktopView.jsx
+++ b/src/core/components/views/DesktopView.jsx
@@ -1,15 +1,17 @@
 import useDevice from '@/core/hooks/useDevice'
 import { useEffect, useState } from 'react'
 
+const initialView = <></>
+
 const DesktopView = ({ children }) => {
   const { isDesktop } = useDevice()
-  const [view, setView] = useState(<></>)
+  const [view, setView] = useState(initialView)
 
   useEffect(() => {
     if (isDesktop) {
       setView(children)
     } else {
-      setView(<></>)
+      setView(initialView)
     }
   }, [isDesktop, children])
 
-- 
cgit v1.2.3

