Retrait de code de debug

This commit is contained in:
Emmy D'Anello 2024-12-16 18:26:06 +01:00
parent ed019a3ed4
commit a8182befe5
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 1 additions and 3 deletions

View File

@ -42,7 +42,6 @@ export default function TrainScreen() {
const { hasShareIntent, shareIntent, resetShareIntent } = useShareIntentContext() const { hasShareIntent, shareIntent, resetShareIntent } = useShareIntentContext()
useEffect(() => { useEffect(() => {
console.log(hasShareIntent, shareIntent)
if (hasShareIntent) { if (hasShareIntent) {
resetShareIntent() resetShareIntent()
if (!shareIntent.text || !shareIntent.text.includes("eurailapp.com/share")) if (!shareIntent.text || !shareIntent.text.includes("eurailapp.com/share"))

View File

@ -34,7 +34,7 @@ function MapComponent({ followUser, setFollowUser }: { followUser?: boolean, set
defaultSettings={{centerCoordinate: [userLocation?.coords.longitude, userLocation?.coords.latitude], zoomLevel: 15}} defaultSettings={{centerCoordinate: [userLocation?.coords.longitude, userLocation?.coords.latitude], zoomLevel: 15}}
followUserLocation={followUser} followUserLocation={followUser}
followUserMode={UserTrackingMode.Follow} followUserMode={UserTrackingMode.Follow}
followZoomLevel={13} followZoomLevel={16}
onUserTrackingModeChange={(event) => { onUserTrackingModeChange={(event) => {
if (followUser && !event.nativeEvent.payload.followUserLocation) if (followUser && !event.nativeEvent.payload.followUserLocation)
setFollowUser(false) setFollowUser(false)

View File

@ -112,7 +112,6 @@ export default function GameProvider({ children }: { children: ReactNode }) {
const { hasShareIntent, shareIntent, resetShareIntent } = useShareIntentContext() const { hasShareIntent, shareIntent, resetShareIntent } = useShareIntentContext()
useEffect(() => { useEffect(() => {
console.log(hasShareIntent, shareIntent)
if (hasShareIntent) { if (hasShareIntent) {
if (!shareIntent.text || !shareIntent.text.includes("eurailapp.com/share")) if (!shareIntent.text || !shareIntent.text.includes("eurailapp.com/share"))
return resetShareIntent() return resetShareIntent()