Fix wrong logic again
This commit is contained in:
parent
e2346bc32a
commit
fb6bca9016
|
@ -237,7 +237,7 @@ export default ({
|
|||
};
|
||||
|
||||
const confirmClose = () => {
|
||||
if (canClose()) {
|
||||
if (!canClose()) {
|
||||
const yes = confirm(beforeUnloadCopy);
|
||||
return yes;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue