diff --git a/src/FLAD/navigation/Navigation.tsx b/src/FLAD/navigation/Navigation.tsx index 1af1869..6eab3b0 100644 --- a/src/FLAD/navigation/Navigation.tsx +++ b/src/FLAD/navigation/Navigation.tsx @@ -54,7 +54,6 @@ const tokenSend: string = useSelector(state => state.userReducer.userFladToken); const locationresp = await Location.getCurrentPositionAsync({}); // send location to server if(currentMusic){ - const body: Record = { longitude: locationresp.coords.longitude, latitude: locationresp.coords.latitude, @@ -91,7 +90,7 @@ const tokenSend: string = useSelector(state => state.userReducer.userFladToken); console.log(error); } }; - const interval = setInterval(sendLocationUpdate, 5000); + const interval = setInterval(sendLocationUpdate, 30000); return () => { clearInterval(interval); }; diff --git a/src/FLAD/screens/Register.tsx b/src/FLAD/screens/Register.tsx index 1e675ba..bea26fa 100644 --- a/src/FLAD/screens/Register.tsx +++ b/src/FLAD/screens/Register.tsx @@ -56,10 +56,13 @@ export default function InscriptionPage() { name: username, idFlad: "9835698" }; + //@ts-ignore dispatch(registerUser(credentials)) + playSound() } + const getTokens2 = async () => { try { const redirectUri = AuthSession.makeRedirectUri(); diff --git a/src/FLAD/screens/Setting.tsx b/src/FLAD/screens/Setting.tsx index d312ee0..d32bfc3 100644 --- a/src/FLAD/screens/Setting.tsx +++ b/src/FLAD/screens/Setting.tsx @@ -332,6 +332,7 @@ export default function Setting() { +