diff --git a/src/components/compose.jsx b/src/components/compose.jsx index bffca125..4ce618b5 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -237,7 +237,7 @@ export default ({ }; const confirmClose = () => { - if (canClose()) { + if (!canClose()) { const yes = confirm(beforeUnloadCopy); return yes; }