From ff830e7c6d6fbd768a91ed8f0e7be460656a6d29 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 30 Dec 2022 09:56:08 +0700 Subject: Address page --- src/helpers/auth.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/auth.js b/src/helpers/auth.js index c09c7590..62eba2c0 100644 --- a/src/helpers/auth.js +++ b/src/helpers/auth.js @@ -20,14 +20,7 @@ const deleteAuth = () => { } const useAuth = () => { - const [auth, setAuth] = useState({ - id: '', - name: '', - email: '', - phone: '', - mobile: '', - token: '' - }); + const [auth, setAuth] = useState(null); useEffect(() => { const handleIsAuthenticated = () => setAuth(getAuth()); -- cgit v1.2.3