File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { RequiredConfig } from '../types' ;
22import { getProbabilisticFingerprint } from '../utils/fingerprint' ;
33
4- const API_URL = 'https://godetour.dev /api/link/match-link' ;
4+ const API_URL = 'https://detour-poc.vercel.app /api/link/match-link' ;
55
66export const getDeferredLink = async ( {
77 API_KEY ,
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export const useDeferredLink = ({
1717 const [ route , setRoute ] = useState < string | null > ( null ) ;
1818
1919 useEffect ( ( ) => {
20+ if ( ! API_KEY || ! appID ) return ;
21+
2022 ( async ( ) => {
2123 if ( deferredSessionHandled ) {
2224 setDeferredProcessed ( true ) ;
@@ -27,7 +29,6 @@ export const useDeferredLink = ({
2729
2830 const isFirstEntrance = await checkIsFirstEntrance ( ) ;
2931 if ( ! isFirstEntrance ) {
30- console . log ( 'Not the first entrance, skipping deferred link fetch' ) ;
3132 setDeferredProcessed ( true ) ;
3233 return ;
3334 } else {
@@ -40,7 +41,6 @@ export const useDeferredLink = ({
4041 shouldUseClipboard,
4142 } ) ;
4243 if ( ! link ) {
43- console . log ( 'No deferred link found' ) ;
4444 setDeferredProcessed ( true ) ;
4545 setMatchedLink ( null ) ;
4646 return ;
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ type ProbabilisticFingerprint = {
1414 locale : Localization . Locale [ ] ;
1515 timezone : string | null | undefined ;
1616 userAgent : string ;
17- appVersion : string ;
1817 timestamp : number ;
1918 pastedLink ?: string ;
2019} ;
@@ -35,7 +34,6 @@ export const getProbabilisticFingerprint = async (
3534 locale : Localization . getLocales ( ) ,
3635 timezone : Localization . getCalendars ( ) [ 0 ] ?. timeZone ,
3736 userAgent : await DeviceInfo . getUserAgent ( ) ,
38- appVersion : DeviceInfo . getVersion ( ) ,
3937 timestamp : Date . now ( ) ,
4038 pastedLink : shouldUseClipboard
4139 ? await Clipboard . getStringAsync ( )
You can’t perform that action at this time.
0 commit comments