From 9af16e591f9590e9bb3672f7f81630d5894fe453 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 12 Jun 2024 14:09:53 -0600 Subject: [PATCH] fixes crash on vbba flow --- src/components/Modal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 76f4b251ec83..325fb4ca6ab8 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -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(); } };