Skip to content

Commit

Permalink
Merge pull request #1041 from jolocom/SW-709/fix-lock-screen-gets-ski…
Browse files Browse the repository at this point in the history
…pped-when-clicking-deeplink-url

SW-709 - fix Lock when clicking on deeplink url
  • Loading branch information
thwalln committed Nov 8, 2022
2 parents 9285735 + b89f377 commit 96dab97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/screens/Modals/Interaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '~/utils/screenSettings'
import ServiceRedirect from './ServiceRedirect'
import eID from './eID'
import { getIsAppLocked } from '~/modules/account/selectors'

export type InteractionStackParamList = {
[ScreenNames.Scanner]: undefined
Expand All @@ -35,12 +36,13 @@ const InteractionStack = createStackNavigator<InteractionStackParamList>()
const Interaction: React.FC = () => {
const isInteracting = useSelector(getInteractionType)
const navigation = useNavigation()
const isAppLocked = useSelector(getIsAppLocked)

useEffect(() => {
if (isInteracting) {
if (isInteracting && !isAppLocked) {
navigation.navigate(ScreenNames.InteractionFlow)
}
}, [isInteracting])
}, [isInteracting, isAppLocked])

return (
<InteractionStack.Navigator headerMode="none" mode="modal">
Expand Down

0 comments on commit 96dab97

Please sign in to comment.