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