summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
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());