Skip to content

Commit

Permalink
Merge pull request #43606 from Expensify/cmartins-fixCrashOnVBBAFlow
Browse files Browse the repository at this point in the history
[CP Staging] Fix crash on vbba flow
  • Loading branch information
srikarparsi authored Jun 12, 2024
2 parents 7a63c91 + 9af16e5 commit 46914c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Modal({fullscreen = true, onModalHide = () => {}, type, onModalShow = (
const hideModal = () => {
setStatusBarColor(previousStatusBarColor);
onModalHide();
if (window.history.state.shouldGoBack) {
if (window.history.state?.shouldGoBack) {
window.history.back();
}
};
Expand Down

0 comments on commit 46914c6

Please sign in to comment.