File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -193,16 +193,16 @@ export function getStudentServices(
193193 image : Urls . images . tutorInsa ,
194194 onPress : ( ) => {
195195 Linking . canOpenURL ( Urls . websites . tutorInsaDeepLink )
196- . then ( ( supported ) => {
197- console . log ( `Instagram deep link supported: ${ supported } ` ) ;
198- if ( supported ) {
199- return Linking . openURL ( Urls . websites . tutorInsaDeepLink ) ;
200- } else {
201- return Linking . openURL ( Urls . websites . tutorInsa ) ;
202- }
203- } )
204- . catch ( ( ) => Linking . openURL ( Urls . websites . tutorInsa ) ) ;
205- } ,
196+ . then ( ( supported : boolean ) => {
197+ console . log ( `Instagram deep link supported: ${ supported } ` ) ;
198+ if ( supported ) {
199+ return Linking . openURL ( Urls . websites . tutorInsaDeepLink ) ;
200+ } else {
201+ return Linking . openURL ( Urls . websites . tutorInsa ) ;
202+ }
203+ } )
204+ . catch ( ( ) => Linking . openURL ( Urls . websites . tutorInsa ) ) ;
205+ } ,
206206 badgeFunction : ( dashboard : FullDashboardType ) : number =>
207207 dashboard . available_tutorials ,
208208 } ,
You can’t perform that action at this time.
0 commit comments