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

(cherry picked from commit 46914c6)
  • Loading branch information
srikarparsi authored and OSBotify committed Jun 12, 2024
1 parent 4cf27b3 commit b9f35d2
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 b9f35d2

Please sign in to comment.