Skip to content

Commit

Permalink
comment added in css file and args removed from function call
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin87 committed Aug 1, 2023
1 parent c7fc624 commit 5671c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/Onfido/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@
}

.onfido-sdk-ui-NavigationBar-back {
/* This keeps onfido back button hidden since there is already a back button in the top header which
programatically clicks onfido button. */
visibility: hidden;
}
4 changes: 2 additions & 2 deletions src/pages/ReimbursementAccount/RequestorOnfidoStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class RequestorOnfidoStep extends React.Component {
this.goBack = this.goBack.bind(this);
}

goBack(...args) {
goBack() {
const onfidoBack = document.querySelector('.onfido-sdk-ui-NavigationBar-back');
if (onfidoBack && !onfidoBack.classList.contains('onfido-sdk-ui-NavigationBar-disabled')) {
onfidoBack.click();
} else {
this.props.onBackButtonPress(...args);
this.props.onBackButtonPress();
}
}

Expand Down

0 comments on commit 5671c62

Please sign in to comment.