File tree 2 files changed +17
-1
lines changed
pages/ReimbursementAccount 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 47
47
height : 92% !important ;
48
48
}
49
49
}
50
+
51
+ .onfido-sdk-ui-NavigationBar-back {
52
+ /* This keeps onfido back button hidden since there is already a back button in the top header which
53
+ programatically clicks onfido button. */
54
+ visibility : hidden;
55
+ }
Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ class RequestorOnfidoStep extends React.Component {
31
31
constructor ( props ) {
32
32
super ( props ) ;
33
33
this . submit = this . submit . bind ( this ) ;
34
+ this . goBack = this . goBack . bind ( this ) ;
35
+ }
36
+
37
+ goBack ( ) {
38
+ const onfidoBack = document . querySelector ( '.onfido-sdk-ui-NavigationBar-back' ) ;
39
+ if ( onfidoBack && ! onfidoBack . classList . contains ( 'onfido-sdk-ui-NavigationBar-disabled' ) ) {
40
+ onfidoBack . click ( ) ;
41
+ } else {
42
+ this . props . onBackButtonPress ( ) ;
43
+ }
34
44
}
35
45
36
46
submit ( onfidoData ) {
@@ -50,7 +60,7 @@ class RequestorOnfidoStep extends React.Component {
50
60
stepCounter = { { step : 3 , total : 5 } }
51
61
shouldShowGetAssistanceButton
52
62
guidesCallTaskID = { CONST . GUIDES_CALL_TASK_IDS . WORKSPACE_BANK_ACCOUNT }
53
- onBackButtonPress = { this . props . onBackButtonPress }
63
+ onBackButtonPress = { this . goBack }
54
64
/>
55
65
< FullPageOfflineBlockingView >
56
66
< ScrollView contentContainerStyle = { styles . flex1 } >
You can’t perform that action at this time.
0 commit comments