Commit 4fc7f19 1 parent b82c1b3 commit 4fc7f19 Copy full SHA for 4fc7f19
File tree 1 file changed +8
-2
lines changed
suite-native/module-onboarding/src/screens
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ export const BiometricsScreen = ({
46
46
} ;
47
47
48
48
const exitOnboardingFlow = ( ) => {
49
- dispatch ( setIsOnboardingFinished ( ) ) ;
50
-
51
49
navigation . dispatch (
52
50
CommonActions . reset ( {
53
51
index : 0 ,
@@ -61,6 +59,14 @@ export const BiometricsScreen = ({
61
59
] ,
62
60
} ) ,
63
61
) ;
62
+
63
+ // FIXME: Hotfix temporary solution.
64
+ // Timeout is needed to ensure that navigation event already finishes before changing the redux state.
65
+ // Situation when the onboarding screen was still focused but the state was already changed made `useHandleDeviceConnection`
66
+ // to display the device disconnected alert even if it should not be displayed.
67
+ setTimeout ( ( ) => {
68
+ dispatch ( setIsOnboardingFinished ( ) ) ;
69
+ } , 500 ) ;
64
70
} ;
65
71
66
72
const handleEnableButtonPress = async ( ) => {
You can’t perform that action at this time.
0 commit comments