Protect against missing element

This commit is contained in:
Paul Frazee 2024-05-06 18:06:31 -07:00
parent 0a8dc289ff
commit 032f849092

View file

@ -115,10 +115,9 @@ function App() {
initPersistedState().then(() => {
setReady(true)
const preloadElement = document.getElementById('preload');
preloadElement.remove();
const preloadElement = document.getElementById('preload')
preloadElement?.remove()
})
}, [])
if (!isReady) {