Whenever the prop `open` is `true` on mount, the modal causes the app to crash. 