summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-12-30 09:56:08 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-12-30 09:56:08 +0700
commitff830e7c6d6fbd768a91ed8f0e7be460656a6d29 (patch)
tree86a4797323f080a459591d45b9d5a34ee869ab65 /src/helpers
parentba6eca41f673f8db4d9f686fb7dab2358a4dc5eb (diff)
Address page
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/auth.js9
1 files changed, 1 insertions, 8 deletions
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());