Really fixed WSOD when deleting account/channel

This commit is contained in:
tyler 2024-06-01 14:42:09 -04:00
parent 983c031325
commit 3f29337fd6

View file

@ -344,7 +344,7 @@ function PageDetails(props) {
onSubmit={() => setError('')}
/>
)}
{openDelete && (
{openDelete && details !== null && (
<Modal
backgroundClose={true}
cancelButton={'Cancel'}
@ -352,7 +352,7 @@ function PageDetails(props) {
onClose={resetDelete}
deleteButton={deleting ? 'Deleting' : 'Delete'}
onDelete={deletePage}
deleteActive={details === null ? false : details.title === deleteName}
deleteActive={details.title === deleteName}
pageName={details.title}
show={openDelete}
style={{