Retrait de code de debug
This commit is contained in:
		@@ -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"))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user